Re: NSDateFormatter initialization+formatting not working
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