开发者

create application for Mac OS X from ios

I have iPad game application. Now I want it for the Mac OS x. This application is using Cocos2D and Gamekit开发者_高级运维 framework. How can I create Mac OS X application. Gamekit framework is only available in ios. Any help is appreciable.


Its a very broad question. You are asking how too create a Mac App which can't be done in a single SO answer

Your best start would be to use the Cocoa Application template and work forward. The Google and Apple example code will show you many examples.

Depending on how much of your program is rooted in the UIKit based API will determine how easy it is to translate your program. The UIKit framework doesnt exist in Mac but most items have an equivalent NSThing equivalent (UIButton is similar to NSButton)

You will have to disable the GameKit stuff as that isn't on MacOS(yet)

The core of your troubles will be to place your Cocos2D view into a NSWindow hierarchy and possibly full screen it at launch.

Good Luck

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜