The Apple ][ came out 4 years before the PC. Apple had a 4 year lead, and managed to piss it away with various horrible mistakes like the Apple III and the Lisa. Both of these were badly managed flops. The original macintosh 128K (I have one in my garage) cost $2400 in 1983, when you could get a PC for far less. It had a single floppy drive, and required you to switch the system disk with the application disk again and again as it was running. They were only sold through "Apple Stores". It was really wizzy, but there were only two applications for it (both written by 'Apple', MacPaint and MacWord), and no development environments. The first commerically available development environment was "MacForth"... The original mac didn't sell all that well. That high price tag kept it from winning the market share it deserved.
When windows came out, it was a disaster, s*it on a stick, but you could still run your spreadsheet program. So, what did Apple do? Did they cut prices and kill it off like they should have done? No, they kept raising their prices, while at the same time alienating business customers with a hippy image. Then, they struck back at microsoft in court, with a multi-year lawsuit attempting to keep microsoft from using the same ideas they had stolen from Xerox. (Ask Richard Stallman about that). Once again, they had at least a 4 year lead, this time in the usability and user interface, but they blew it. They blew their lead by concentrating on the wrong markets, letting windows gradually be more acceptable to business users. The mac has never really lost that toylike quality.
By the time Apple got around to switching over to unix, the original mac os 9 was pathetic. It still ran in a single monolithic address space. It used a cooperative scheduler. Much of it's code was emulated 68k code from a switch over done 5 years before. Keeping it running was a nightmare due to the crappy file system and outrageously bad disk management utilities. (I know because a friend was running OS 9 up until about 6 months ago, and she called me every few months to fix it for her. She hasn't called since she upgraded.).
Apple had a great product in the Apple ][. It was, arguably, the first real viable personal computer. However, the Lisa, and then the Macintosh was basically stolen from Xerox Parc. They sucked as much money as they could out the idea of a GUI without really innovating themselves. Their CEO in the 80s, John Scully, made his name selling Pepsi. He knew how to suck money out of the public, and that is how Apple got by. Their "Advanced Technology Group" came up with cool things like firewire and quicktime, but management acted like Xerox before them, and didn't seize the moment.
Apple has nobody to blame for Windows but itself.