Re: Selecting a Time Zone (NSTimeZone)
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