• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Automatically select current system's timezone from popup button
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Automatically select current system's timezone from popup button (From: Jushin <email@hidden>)
 >Re: Automatically select current system's timezone from popup button (From: Nick Zitzmann <email@hidden>)
 >Re: Automatically select current system's timezone from popup button (From: Ron Fleckner <email@hidden>)

  • Prev by Date: Re: Automatically select current system's timezone from popup button
  • Next by Date: Design question: View with hell lot of drawing
  • Previous by thread: Re: Automatically select current system's timezone from popup button
  • Next by thread: [ANN] InspectorKit (framework/IB-plugin)
  • Index(es):
    • Date
    • Thread