• 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 -initWithDateFormat:: vs. -init
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDateFormatter -initWithDateFormat:: vs. -init


  • Subject: Re: NSDateFormatter -initWithDateFormat:: vs. -init
  • From: Charles Srstka <email@hidden>
  • Date: Fri, 11 Nov 2011 20:40:18 -0600

On Nov 11, 2011, at 7:41 PM, Greg Parker wrote:

> On Nov 11, 2011, at 5:36 PM, Jerry Krinock wrote:
>> NSDateFormatter documentation indicates that -initWithDateFormat:allowNaturalLanguageString: is the recommended initializer for new designs, and furthermore that -init is not "available" after 10.5.
>
> The documentation is wrong. -[NSDateFormatter init] is not deprecated. Use it.
>
> Your documentation may be out of date. I think that documentation bug in NSDateFormatter is fixed now.

The documentation indeed doesn’t say -[NSDateFormatter init] is deprecated; however, it no longer appears to contain -[NSDateFormatter init] in its list of instance methods at all. Even though -init is derived from the superclass, it’s pretty confusing to have only one init method show up in the docs, that method being the one you’re *not* supposed to use, and that should probably be fixed.

Charles


_______________________________________________

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 -initWithDateFormat:: vs. -init (From: Jerry Krinock <email@hidden>)
 >Re: NSDateFormatter -initWithDateFormat:: vs. -init (From: Greg Parker <email@hidden>)

  • Prev by Date: How to determine if there is an internet connection available?
  • Next by Date: Re: How to determine if there is an internet connection available?
  • Previous by thread: Re: NSDateFormatter -initWithDateFormat:: vs. -init
  • Next by thread: Calling a Cocoa library from C
  • Index(es):
    • Date
    • Thread