Re: Bypassing Interface Builder
Re: Bypassing Interface Builder
- Subject: Re: Bypassing Interface Builder
- From: Stefan Werner <email@hidden>
- Date: Wed, 14 May 2008 09:46:18 -0700
On May 14, 2008, at 9:13 AM, glenn andreas wrote:
Also, when you support localization, you really need to use NIBs.
Different languages can easily require different layouts, due to
string lengths (German UI text tends to be _much_ longer often
requiring serious re-do of layouts), cultural norms (Left to Right
vs Right to Left), etc.... If you do everything in code, you're
going to have to figure out what the current locale/language is, map
it to what languages you support, and then do your layout from
there. By using NIBs, you can just have a different layout with a
differently localization and the system takes care of everything else.
Actually, there are many frameworks that do dynamic layouts with
widgets that will automatically resize to fit their labels (Java Swing
for example). I'm not aware of an easy way of doing this in native
Cocoa, but it should be possible do have proper localization support
without having separate NIB files for each language. I'm expecting
that Qt/Cocoa and wxCocoa will deliver such implementations.
-Stefan
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden