• 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: NSDateFormatter initialization+formatting not working
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDateFormatter initialization+formatting not working


  • Subject: Re: NSDateFormatter initialization+formatting not working
  • From: Markus Spoettl <email@hidden>
  • Date: Mon, 21 Feb 2011 10:48:29 -0500

On Feb 19, 2011, at 11:18 PM, Ken Thomases wrote:
>> And why doesn't the -initWithDateFormat: initializer work?
>
> I think it does work, but produces a formatter using the old-style behavior.  From <http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSDateFormatter_Class/>:

Thanks for pointing that out.

> My best guess about -init is not so much that it is deprecated to invoke that method, but that there used to be an override with its own documentation, but now it's just implicit that -init is inherited from NSObject.  So, the old method documentation was removed from the class reference and put in a "deprecated" page.  If you look at the header, there is a commented-out declaration of -init with a comment saying it is the designated initializer.  In previous versions of that header, the -init method declaration was not commented out.

This sounds right. Calling -init deprecated is most certainly a documentation bug in this case. Thanks for clearing this one up for me!

Regards
Markus
--
__________________________________________
Markus Spoettl

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >NSDateFormatter initialization+formatting not working (From: Markus Spoettl <email@hidden>)
 >Re: NSDateFormatter initialization+formatting not working (From: Ken Thomases <email@hidden>)

  • Prev by Date: NSDocument Problems
  • Next by Date: Re: Getting NSScrollView to ignore scrolling
  • Previous by thread: Re: NSDateFormatter initialization+formatting not working
  • Next by thread: Keeping Multiple Identical Tables in Synch - Weird SortDescriptor Binding Problem
  • Index(es):
    • Date
    • Thread