开发者

porting from ios to windows

开发者 https://www.devze.com 2023-04-12 18:18 出处:网络
I\'m about to write code for Windows that has somewhat similar functionality to the one existing in al开发者_高级运维ready written application for iPhone. I\'m thinking of separating common functional

I'm about to write code for Windows that has somewhat similar functionality to the one existing in al开发者_高级运维ready written application for iPhone. I'm thinking of separating common functionality to form a component and compile it to both to iPhone and to Windows. This code is written in Objective C and uses RestKit and Core Data (and probably sqlite). Is compiling it for Windows a viable task? As I understand it GCC could compile Objective C on Windows but I'm unsure about the RestKit and Core Data api availability on Windows. I have seen two names that could be of use: GNUStep and Cocotron but I don't know if they will play well together with RestKit.

Note: I have no idea about iOS development so I might be confusing things. Any help is appreciated.


You will not easily be able to share this functionality between your applications. CoreData uses a custom opaque (not documented) format for the sql store. You would be hard pressed to reverse engineer this.

You will probably save a lot of time by rewriting that part for windows, rather than trying to get it working. There really isn't much iOS code that can be reused under windows, unless you have written pure C or C++.

0

精彩评论

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