• 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
Automatically select current system's timezone from popup button
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Automatically select current system's timezone from popup button


  • Subject: Automatically select current system's timezone from popup button
  • From: Jushin <email@hidden>
  • Date: Mon, 9 Mar 2009 23:33:28 -0400

I have a NSPopUpButton list, which contains name of timezones.
When I construct the popup button, I get the list of the timezone using
[NSTimeZone knownTimeZoneNames]
and then constructed another array using [NSTimeZone timeZoneWithName:name]

So, basically, the popup button has the list of NSString of timezone name.
However, when I launch my application, I would like to make my
application automatically select current system's timezone from the
list.
Also, when a user select a timezone from the popup button, I want to
convert it into NSTimeZone.
How can I do this?
_______________________________________________

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

  • Follow-Ups:
    • Re: Automatically select current system's timezone from popup button
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: Archiving/unarchiving root objects using instance methods
  • Next by Date: Re: Automatically select current system's timezone from popup button
  • Previous by thread: Re: User In-Activity hook? And a request
  • Next by thread: Re: Automatically select current system's timezone from popup button
  • Index(es):
    • Date
    • Thread