Selecting a Time Zone (NSTimeZone)
Selecting a Time Zone (NSTimeZone)
- Subject: Selecting a Time Zone (NSTimeZone)
- From: Patrick Gibson <email@hidden>
- Date: Mon, 26 Feb 2007 23:43:20 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello all,
What is the best way to ask a user to select an arbitrary time zone?
Are there any existing, open source classes/frameworks that help with
this? I've googled around but found nothing.
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.
Additional context: I'm using this in an Adium Time Zone Plug-in, the
work of which is open source and can be seen here: http://
words.fadeover.org/archives/22 The current implementation simply
takes and sorts all the knownTimeZoneNames into continent categories
and allows them to be selected from pop-up menus. This would be
acceptable except for the fact that many major cities (such as
Seattle, as mentioned above) isn't listed. Using GMT offsets would be
simpler but they don't take into account DST, which would cause
problems for many users.
Any help is appreciated, thanks in advance.
Sincerely,
Patrick G. ~ PGP Public key ID: 126B7A56
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD4DBQFF47cAjipUTRJrelYRAkiFAJ4v9xvCp1rJa6NO2yxOdsMdSBM0UQCY7Ss9
k9h6E3qxTTVDVcCsBOm7Ig==
=gmEh
-----END PGP SIGNATURE-----
_______________________________________________
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