Re: developing a cross-platform app?
Re: developing a cross-platform app?
- Subject: Re: developing a cross-platform app?
- From: James Chen <email@hidden>
- Date: Wed, 19 May 2004 20:41:47 +0800
Hi,
I do agree with Karin's idea.
It's lots of pain implement GUI for each platform indeed.
Especially for a complicated UI, you may have some custom widgets, you
have to implement them for each platform respectively.
And controller, too.
Using a cross-platform framework, such as Qt, do save you a lot of time.
But, on the other hand, it'll be hard to leverage the user experience.
For example, in some dialog of some platform, the "OK" button is on the
right side of "Cancel" button and some platform are reversed.
Another example, in my practice of using Qt (forget the version), some
behavior of standard widget (control) are not what I expect.
(My observation, Qt is based on Windows OS.)
That's pain, too. As a Mac user, I can't stand with that.
I think it would be a trade-off for me.
It's a challenge to study lots of Framework and implement widgets for
each platform respectively.
But it's much easier to polish GUI for each platform.
I would use cross-platform framework, such as Qt, to save my time if
time is a issue.
Regards,
James
P.S. I'm not associated with anti-Qt in any way. :)
------------------------------------
Ulead Systems Inc.
James Chen
Software Engineer
Image Div.
------------------------------------
On May 19, 2004, at 7:24 PM, Karin Kosina wrote:
+-------------- 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.