Installing OSX on a pc via vmware?

I'm looking for a way to install OSX onto my pc so I can run XCode and get into the app developing game. Anyways a mac is way too expensive for me right now, so can I just buy the Mac OS and install it onto my pc? I heard vmware can do something like that from my friend, but the site seems very confusing. So how can install OSX so I can develop iphone apps?

P.S. I don't want to do anything illegal or make a hackintosh or something.

There's no legal way to run Mac Os on non-Apple hardware, including the use of VM technology. All legitimate makers of VM software, including VMware, have signed legal agreements with Apple stating that they will not provide Apple hardware emulation.

  • Will updating to Mac Osx 10.6.8 Erase Data? My iphone's running ios 6 and it got messed up so i wanted to restore it, itunes says it needs to be updated so when i downloaded itunes 7.1 it said mac needs to be updated. Do i have to install the mac osx update? Will it erase my data? ( i don't have a time machine or a back up)
  • Why aren't my apps installing? I replaced my iPhone 4 today in the apple store and they transferred everything over to this one. They said all my apps would come back once I get home, I've been home 2 hours now and it still says 'waiting' below each app. Is this normal?
  • Update to OSX Mountain Lion? Hi! So I got my hands on an iPhone 5 recently and I wanted to back it up and add songs so I plugged it into my Mac. Then it said that my iTunes version was too old and to update, i need to update the OSX since I'm currently running on 10.5.8. I'm considering buying Mountain Lion but will it DELETE MY FILES? Read some stuff online about "backing it up"? How do you do that exactly, without iCloud?
  • Remove DRM from itunes (Mac OSX Snow Leopard)? I moved from an Iphone to a galaxy nexus. Almost everything I bought on Itunes refuses to transfer due to DRM. I've tried Requiem to no success, FairPlay didn't work either. I don't have a ton of CDs sitting around so is there another way to remove this? I also do not want to spend $35 on some of this software that allows a "free trial" for songs less than 3 minutes long. Please Help. Apple is a cruel cult that is trying to suck me back in