简体   繁体   English

是否可以使用GNUstep将iOS应用程序移植到Windows? (用于学习目的)

[英]Is it possible to port an iOS app to Windows using GNUstep? (for learning purposes)

I am an Objective-C newbie, who still does not have a Mac, but still I want to practice the language. 我是一个Objective-C新手,他仍然没有Mac,但我仍然想练习这门语言。 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. 我听说在非Mac世界中,GNUstep提供了一个很好的Cocoa替代品,可以用作新Objective-c开发人员的学习工具。 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. 我的问题是,由于GNUstep移植了很多Cocoa类,我移植iOS游戏及其开发框架的可能性有多大。 I am talking about Canabalt for iOS (https://github.com/ericjohnson/canabalt-ios) which is based on the iOS version of the Flixel framework. 我在谈论iOS的Canabalt(https://github.com/ericjohnson/canabalt-ios),它基于Flixel框架的iOS版本。 I would like to know whether there is even the slightest chance of being able to port & run this game on windows using GNUstep. 我想知道是否有最轻微的机会能够使用GNUstep在Windows上移植和运行此游戏。 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 :) 请记住,这完全是出于教育目的,所以请不要在其中寻找任何实用价值,除了我用ObjC变得更好:)

I guess that it should be technically possible. 我想它应该在技术上可行。 In general, what are the chances of porting any iOS app to Win using GNUstep? 一般来说,使用GNUstep将任何iOS应用程序移植到Win的可能性是多少?

I think you'd be better off porting a Mac application than an iOS application. 我认为移植Mac应用程序比使用iOS应用程序更好。 While the iOS frameworks (UIKit mostly) are close to those of Mac OS, they are still quite different. 虽然iOS框架(主要是UIKit)接近Mac OS,但它们仍然完全不同。 Beyond the code differences there are HUGE paradigm shifts between iOS and Mac, in the limited screen space and the lack of a mouse. 除了代码差异之外,在有限的屏幕空间和缺少鼠标的情况下,iOS和Mac之间存在巨大的范例转换。

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. GNUstep 接近 Cocoa,所以你可以通过一些工作移植Mac应用程序,但不是一个iOS应用程序。

If you do get serious about cross-platform objective-C you may want to check out cappuccino and cocotron . 如果你真的认真对待跨平台的Objective-C,你可能想看看卡布奇诺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. 如果你没有Mac,但仍然会有点困难。 A used mac mini might go a long way towards happiness here. 使用过的mac mini可能会在这里走向幸福。

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. 不要过分担心成功 - 如果它看起来太无聊或太难,只要做其他事情。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM