Re: Java or C++ for cross-platform Cocoa/.NET?
Re: Java or C++ for cross-platform Cocoa/.NET?
- Subject: Re: Java or C++ for cross-platform Cocoa/.NET?
- From: Fredrik Olsson <email@hidden>
- Date: Tue, 15 Jun 2004 07:45:22 +0200
I sort of did this for an assignment at University. Using C++ for the
model/logic, and wrapping it up in Borland C++ Builder for the Windows
application and Cocoa for the Mac OS X application.
There was no real problem at all with this small application. Did a
sloc count on the code though and the Win-specific code ended up a bit
over 1000, and the Cocoa parts around 85 I think. And they do the same
thing (Cocoa lack printing :/).
Full source (including an embryo for a CLI app) here:
http://aio.nocrew.org/assignments/systems_engineering/
divemanager.tar.gz
/Fredrik Olsson
2004-06-09 kl. 17.05 skrev Eric Czarny:
It's also possible to write the model code in C or C++ then, for each
platform, writing the GUI code/system specific code in what ever
method seems fit. For Cocoa it would be as simple as wrapping the C or
C++ code in Objective-C... I don't know the specifics for Windows
development, but I imagine it wouldn't be more difficult than wrapping
the model code in C++.
I haven't tried this, but I believe it shouldn't be impossible. Just
an idea.
Cheers,
Eric Czarny
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.