• 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
Re: Two questions about NSCalendar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Two questions about NSCalendar


  • Subject: Re: Two questions about NSCalendar
  • From: Nick Zitzmann <email@hidden>
  • Date: Thu, 19 Jan 2006 20:02:06 -0700


On Jan 19, 2006, at 5:38 PM, Chris Kane wrote:

Though, since we eventually added -setLocale: to NSCalendar (before Tiger shipped), NSCalendar could have a redundant set of methods to answer the questions. However, in some locales or languages the proper form of the month name depends on the context in which it is used, and that's more the purview of a formatter.

I was thinking more about weekday names. Then I performed a thought experiment today and found that, no matter what calendar is in use, NSDateFormatter always uses the Gregorian (localized) names of the weekdays. For example, weekday 6 is "Friday" on the Gregorian calendar and "Yaum al-Jum`a" on the Islamic calendar, but NSDateFormatter always uses "Friday" as the weekday name even if the Islamic calendar is in use. Why doesn't it return the correct weekday names for different calendar types?


Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Two questions about NSCalendar
      • From: Chris Kane <email@hidden>
References: 
 >Two questions about NSCalendar (From: Nick Zitzmann <email@hidden>)
 >Re: Two questions about NSCalendar (From: Chris Kane <email@hidden>)

  • Prev by Date: Issues with auto-resizing table view
  • Next by Date: FTP controls in Cocoa
  • Previous by thread: Re: Two questions about NSCalendar
  • Next by thread: Re: Two questions about NSCalendar
  • Index(es):
    • Date
    • Thread