• 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
NSTimeZone timeZoneWithName troubles
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: what makes a folder an application?
  • Next by Date: message passing
  • Previous by thread: Cocoa Printing--functions not work?
  • Next by thread: message passing
  • Index(es):
    • Date
    • Thread