maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Cocotron (Cocoa reimplementation) port to Maemo (https://talk.maemo.org/showthread.php?t=31667)

millenomi 2009-09-14 17:20

Cocotron (Cocoa reimplementation) port to Maemo
 
Cocotron is an incomplete clean-room reimplementation of Cocoa, and includes much of desktop Cocoa's main parts. I focused on Foundation only, which is to Cocoa what glib is to GTK. It allows ObjC code to run happily on the platform at the model/controller layer, while UI layers are redone using native solutions.

Which is the right way to do things.

Screenshot of Foundation hello, world! app running on Scratchbox's ARM target: http://qkpic.com/cde78

Code forthcoming shortly if anyone's interested.

millenomi 2009-09-14 18:15

Re: Cocotron (Cocoa reimplementation) port to Maemo
 
Quote:

Originally Posted by millenomi (Post 326845)
Cocotron is an incomplete clean-room reimplementation of Cocoa, and includes much of desktop Cocoa's main parts.

For those interested, more info at http://cocotron.org. The patch to apply to the install tools and trunk is available publicly at http://code.google.com/p/cocotron/issues/detail?id=384 if you want to try it out (or fix any of its problems).

qole 2009-09-15 00:11

Re: Cocotron (Cocoa reimplementation) port to Maemo
 
Wow. This could be really amazing. Am I understanding this right? This could, eventually, allow iPhone apps to be compiled for Maemo devices without (many) changes?

millenomi 2009-09-15 06:34

Re: Cocotron (Cocoa reimplementation) port to Maemo
 
Quote:

Originally Posted by qole (Post 326994)
Wow. This could be really amazing. Am I understanding this right? This could, eventually, allow iPhone apps to be compiled for Maemo devices without (many) changes?

I'm a staunch opponent of cross-platform UI layers in applications that are meant for wide distribution -- especially in the mobile UI field where there are so many variations of the basic concepts. So I would never port, say, the iPhone's UIKit to Maemo, instead opting for rewriting the UI from scratch to fit well in the new environment.

But that aside, yes, it's exactly the reason for which I did that. I have an iPhone app, which by the way is also open source, and its "backend" (the new-style one I'm building in the /3/ folder of the repository) can now easily be ported to Maemo without me having to duplicate code. Yay.

(Plus: I can work on it and compile it from Xcode, without ever leaving the Mac except for testing. Yay again.)


All times are GMT. The time now is 21:44.

vBulletin® Version 3.8.8