After you buy Xcode from the App Store you will be left with an 'Install Xcode' application in your Applications folder -- run that. It'll do the actual install and after all of that is said and done you'll have a /Developer/Applications/Xcode.app application in your PATH.