Re: Automatically select current system's timezone from popup button
Re: Automatically select current system's timezone from popup button
- Subject: Re: Automatically select current system's timezone from popup button
- From: Kyle Sluder <email@hidden>
- Date: Tue, 10 Mar 2009 02:02:21 -0400
On Tue, Mar 10, 2009 at 1:12 AM, Ron Fleckner
<email@hidden> wrote:
> Or just get the time zone from the name of the item:
In general, tying constant identifiers to UI elements like this is a
very bad idea; it makes localization very hard and introduces stronger
coupling between the UI and your code.
In this specific case, you should be using +knownTimeZoneNames only to
fill in the represented object of each menu item. You should instead
use -localizedName:locale: to provide the label of each menu item.
Note that this method is 10.5 only.
--Kyle Sluder
_______________________________________________
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