• 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: Selecting a Time Zone (NSTimeZone)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Selecting a Time Zone (NSTimeZone)


  • Subject: Re: Selecting a Time Zone (NSTimeZone)
  • From: "Philip Q" <email@hidden>
  • Date: Tue, 27 Feb 2007 18:06:50 +1300

On 27/02/07, Patrick Gibson <email@hidden> wrote:
Apple's implementation in the date and time preference pane is pretty
excellent, but it uses some magic in converting the cities into
actual NSTimeZone compatible city names (for example, Seattle is not
listed in [NSTimeZone knownTimeZoneNames], but is on the map). The
amount of information packed into that map is immense and
Implementing my own sort of timeZoneSelectionMapView class would be
extremely difficult to say the least.


The date and time preference pane doesn't use NSTimeZone, all of it's city data is hard-coded. The data is in the file: /System/Library/PreferencePanes/DateAndTime.prefPane/Contents/Resources/TimeZone.prefPane/Contents/Resources/all_cities_adj.plist

Take a look at the XML comments at the top of the file for
documentation on the format. You may have some luck using the
information in there.

-Phil
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: 
 >Selecting a Time Zone (NSTimeZone) (From: Patrick Gibson <email@hidden>)

  • Prev by Date: Selecting a Time Zone (NSTimeZone)
  • Next by Date: Stack Trace without /usr/bin/atos
  • Previous by thread: Selecting a Time Zone (NSTimeZone)
  • Next by thread: Stack Trace without /usr/bin/atos
  • Index(es):
    • Date
    • Thread