• 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
NSCalendarDate and locale
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSCalendarDate and locale


  • Subject: NSCalendarDate and locale
  • From: Joe Chan <email@hidden>
  • Date: Mon, 28 Jan 2002 10:38:50 -0500

I'm using NSCalendarDate to parse a date string from a standard mail header, and I'm trying to understand how locale comes into play. As I understand (and I don't have much experience with non-US systems), the date string in the Date field of mail header uses only short English month and day names. If I used initWithString:calendarFormat: message to parse the date string in a non-English system, those name won't match. This suggests that I should use initWithString:calendarFormat:locale: to specify the parsing to be done with an English locale. My question is: how do I get an English locale dictionary on a non-English system? As far as I can see in NSUserDefaults, I can only easily get the user's current default, not perhaps a named one.

-----------
Joe Chan
email@hidden
http://www.firstian.com


  • Follow-Ups:
    • Re: NSCalendarDate and locale
      • From: Malte Tancred <email@hidden>
  • Prev by Date: Re: Multi-threaded AppKit examples?
  • Next by Date: Re: using a Wacom from Cocoa - buttons other than 0...
  • Previous by thread: Re: Multi-threaded AppKit examples?
  • Next by thread: Re: NSCalendarDate and locale
  • Index(es):
    • Date
    • Thread