"And the only reason OSX is more secure is because of its significantly smaller user-base. If OSX had 90% of the market, you can be sure there would be many more OSX-based attacks out there."
Actually OSX is fundamentally more secure than XP by design. It has nothing to do with installed userbase. There would definitely be more attempts if more people used it though.