NSTimeZone timeZoneWithName troubles
NSTimeZone timeZoneWithName troubles
- Subject: NSTimeZone timeZoneWithName troubles
- From: Jeff Hokit <email@hidden>
- Date: Sun, 26 May 2002 20:24:58 -0700
Hello All,
I've found that many of the time zone names returned by [NSTimeZone
knownTimeZoneNames] will cause [NSTimeZone timeZoneWithName] to return a bad
object (which has a reasonable looking address, but can't be displayed in
the debugger, or sent a message at runtime).
For example
NSTimeZone *aZone;
aZone = [NSTimeZone timeZoneWithName:@"Jeff"]; // will return NIL, as
it should
aZone = [NSTimeZone timeZoneWithName:@"US/Pacific"]; // will return a
valid NSTimeZone
aZone = [NSTimeZone timeZoneWithName:@"Africa/Harare"]; // will return a
bad object pointer
I've found about forty such time zone names (among the 400-something
returned by knownTimeZoneNames) that don9t work right with timeZoneWithName.
What am I doing wrong?
Regards,
Jeff Hokit
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.