Is it possible to port an iOS app to Windows using GNUstep? (for learning purposes)
Asked Answered
U

3

10

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?

Underbelly answered 15/1, 2011 at 0:13 Comment(1)
For the record, Cocoa is not Cocoa Touch.Barye
H
13

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.

Henrieta answered 15/1, 2011 at 0:37 Comment(5)
Well, solving problems like these are just part of the porting experience. It does not come without work.Reckless
I agree, I just got the impression the OP assumed GNUstep ~ UIKit ;)Henrieta
Maybe, but GNUstep has other useful stuff, like NSString and OpenGL support.Reckless
d11wtq is exactly correct; both Cocoa & GNUStep were directly derived from OpenStep's user interface APIs (the AppKit). iOS uses a very different user interface framework (UIKit). While the Foundation APIs are the same between the three, the GNUStep is much much closer to Cocoa than either is to UIKit.Unexperienced
@kotlinski: you're right that problems are part of the porting experience, but the differences between iOS and MacOS are significant enough that it's more than porting--it's redesign. Probably more than the OP had in mind.Laurinda
C
4

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!

Caucasian answered 13/3, 2011 at 17:22 Comment(0)
R
2

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.

Reckless answered 15/1, 2011 at 0:36 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.