Is there any way to port an existing iPhone app to a Mac OS X app?
It's a very broad question and, as such, is very difficult to answer.
Generally the answer would have to be no.
For an app, if you strictly followed the MVC model, you'd be able to keep the model but would need to rewrite both the view and the controller. For a game it depends on how low-level it is. If you used a framework that it also available on the Mac then a lot may port automatically but you'll still need to reconsider the controls, screen size, etc. Either way it's non-trivial.
It's been a while but looks like its now possible to port some iOS app over to the Mac. Obviously they will look as if they are running under the iOS Simulator, without the faux iPhone screen bezel.
The framework that makes this possible is UMEKit, a re-implementation of UIKit on the Mac on top of Cocoa.
I really doubt, iOS programming is view oriented with only one windows, MacOs instead is windows-oriented. Even if the APIs are really similar, the iOS framework is totally a new thing, recently projected (cfr. UITable).
A lot of the basic UI elements that iOS apps rely on (such as table views and navigation stacks) are not present on the MacOS. So at the very least you will need to rethink and rewrite a lot of your UI, though a lot of the underlying application logic code can be reused.
来源:https://stackoverflow.com/questions/4714063/is-there-a-way-to-convert-an-ios-app-to-a-mac-os-x-app