Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SWT, AWT, Swing, ...what about Cocoa?



True, it's not a cross-platform GUI if you do this. Then again, if you are doing too
much special-casing in your *WT or Swing code, it's not so cross-platform after that,
either. Cocoa is a nice option if you're making a Mac-specific version of your Java
software. People on this list seem to be concerned that a lot of AWT and Swing
software "doesn't look or feel like they are Mac OS X applications," and I know of
no better way to insure this than to use Cocoa.

With the exception of custom views, you can adapt much of your platform-independent
Java applications to work with Cocoa.

Steve

Even If I think this practice is a sound software-engineering practice, I do not think you can easily achieve cross-platform GUI through this.
A typical GUI application will contain between 70% and 80% of your code devoted ti GUI-related stuffs. Porting an application using the MVC technique and building platform-dependant GUIs will therefore mean to re-write 70% to 80% of your application for each platform you're targetting.
This is something that will be refused by all my customers :-)
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.