是否可以使用 GNUstep 将 iOS 应用程序移植到 Windows? (用于学习目的)
我是一个 Objective-C 新手,还没有 Mac,但我仍然想练习这门语言。我听说在非 Mac 世界中,GNUstep 提供了 Cocoa 的一个很好的替代品,并且可以用作新的 Objective-C 开发人员的学习工具。我的问题是,由于 GNUstep 移植了很多 Cocoa 类,我移植 iOS 游戏及其开发框架的机会有多大。我说的是 iOS 版 Canabalt (https://github.com/ericjohnson/canabalt-ios),它基于 iOS 版本的 Flixel 框架。我想知道是否有哪怕一丁点的机会能够移植和移植?使用 GNUstep 在 Windows 上运行此游戏。请记住,这完全是出于教育目的,所以请不要在其中寻找任何实际价值,除了我对 ObjC 做得更好:)
我想这在技术上应该是可行的。一般来说,使用 GNUstep 将任何 iOS 应用程序移植到 Win 的机会有多大?
I am an Objective-C newbie, who still does not have a Mac, but still I want to practice the language. I heard that in the non-Mac world, GNUstep offers a good alternative to Cocoa, and can be used as a lerning tool for new objective-c developers. My question is, since GNUstep ports a lot of the Cocoa classes, what are the chances of me porting an iOS game + its development framework. I am talking about Canabalt for iOS (https://github.com/ericjohnson/canabalt-ios) which is based on the iOS version of the Flixel framework. I would like to know whether there is even the slightest chance of being able to port & run this game on windows using GNUstep. Remember, that this is entirely for educational purposes, so please, do not look for any practical value in it, besides me getting better with ObjC :)
I guess that it should be technically possible. In general, what are the chances of porting any iOS app to Win using GNUstep?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我认为移植 Mac 应用程序比移植 iOS 应用程序更好。虽然 iOS 框架(主要是 UIKit)与 Mac OS 的框架很接近,但它们仍然有很大不同。除了代码差异之外,iOS 和 Mac 之间还存在巨大的范式转变,因为屏幕空间有限且没有鼠标。
GNUstep 与 Cocoa 很接近,因此您可以通过一些工作来移植 Mac 应用程序,但不能移植 iOS 应用程序。
I think you'd be better off porting a Mac application than an iOS application. While the iOS frameworks (UIKit mostly) are close to those of Mac OS, they are still quite different. Beyond the code differences there are HUGE paradigm shifts between iOS and Mac, in the limited screen space and the lack of a mouse.
GNUstep is close to Cocoa, so you'd be able to port a Mac app with a bit of work, but not so much an iOS app.
如果您确实认真对待跨平台 Objective-C,您可能需要查看 cappuccino 和 cocotron。他们都在朝这个方向点头。如果你没有 Mac,那仍然会有点困难。一台二手 Mac mini 可能会对你的幸福大有帮助。
祝你好运!
If you do get serious about cross-platform objective-C you may want to check out cappuccino and cocotron. They are both nods in this direction. If you don't have a mac that's still going to be a bit tougher though. A used mac mini might go a long way towards happiness here.
Good luck!
我当然认为这是可能的。唯一的问题是您是否认为值得花时间。我很难在这里给出时间估计,因为我不知道你有多好。找出答案的最好方法就是深入研究它。不要太担心成功——如果它看起来太无聊或太难,那就做点别的事吧。
I sure think it is possible. Only question is if you think it will be worth the time spent. It's hard for me to give a time estimate here, since I don't know how good you are. Best way to find out probably is to just dive into it. Don't worry too much about success - if it seems too boring or hard, just do something else.