Re: developing a cross-platform app?
Re: developing a cross-platform app?
+-------------- James Chen [20040519 @ 09:39] --------------
| For example,
| All you program logic should be cross-platform as a Model. ( Written in
| C, C++ or other cross-platform language in a platform-independent
| manner)
| Form the user interface by using platform-dependent framework(SDK) or
| cross-platform framework, such as Qt, as a View.
| And finally write some code to glue Model and View together as a
| Controller.
|
| a paradigm:
|
| --------------- WinController ----------- MFC Widgets
| |
| |
| Model ---------------------- MacController ----------- Cocoa Widgets
| |
| |
| -------------- LinuxController --------- Linux Widgets
| |
| |
I think you are being too optimistic here. :)
In an ideal world, that would be the best solution, yes. But not
all systems make it so easy to separate GUI code from application
logic. It's a major pain to try and stick to a clean MVC model
when using, say MFC.
Honestly, I would recommend everybody who wants to do
cross-platform stuff to take a look at Qt. Some of the
programming paradigms may be a bit strange in the start, but it
really makes cross-platform GUI programming so much easier.
Good luck.
=/~ kyrah
PS: For the record: I am not associated with Trolltech in any
way. ;)
_______________________________________________
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.