• 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: Extending NSCalendar and NSDateFormatter?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Extending NSCalendar and NSDateFormatter?


  • Subject: Re: Extending NSCalendar and NSDateFormatter?
  • From: Deborah Goldsmith <email@hidden>
  • Date: Thu, 13 Apr 2006 14:24:58 -0700

NSCalendar and CFCalendar wrap the calendar functionality in the ICU open source library (http://icu.sourceforge.net/). If you want to add support for more calendars, you can contribute them to ICU, and they will eventually make their way into Mac OS X.

It is still possible to subclass NSCalendar, but the existing implementation won't be any help in that regard, since it just calls ICU. You'll have to override pretty much everything.

Deborah Goldsmith
Internationalization, Unicode liaison
Apple Computer, Inc.
email@hidden

On Apr 12, 2006, at 9:30 PM, Nick Zitzmann wrote:

I've checked the documentation, and although NSCalendar appears to be a class cluster, I don't see any documentation on what method(s) are primitives or how to properly extend the class to add additional calendars. So if I wanted to make my own NSCalendar subclass with more calendars, and wanted NSDateFormatter to recognize the names of the months and eras used by the calendar(s), how would I do that? Is that even possible?

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

_______________________________________________ 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
References: 
 >Extending NSCalendar and NSDateFormatter? (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: NSArrayController and programatic add
  • Next by Date: Running out of process VM
  • Previous by thread: Extending NSCalendar and NSDateFormatter?
  • Next by thread: problem NsMatrix and image
  • Index(es):
    • Date
    • Thread