• 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: Eeyore <email@hidden>
  • Date: Fri, 11 Nov 2011 17:45:47 -0800

I think there was a similar discussion on this list earlier this year (maybe late last year). IIRC, the conclusion was that "init" was removed from the documentation since it is inherited from its superclass' superclass (NSObject) and doesn't do anything exceptional in NSDateFormatter, however it is still the designated initializer for NSDateFormatter.

Aaron

On Nov 11, 2011, at 5:40 PM, Dave DeLong wrote:

> I think you've misunderstood the documentation. -init is the preferred method for creating 10.4+ date formatters.
>
> http://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSDateFormatter_Class/Reference/Reference.html#//apple_ref/occ/instm/NSDateFormatter/initWithDateFormat:allowNaturalLanguage:
>
> Dave
>
> Sent from Jane
>
> On Nov 11, 2011, at 5:36 PM, Jerry Krinock <email@hidden> wrote:
>
>>
>> NSDateFormatter documentation indicates that -initWithDateFormat:allowNaturalLanguageString: is the recommended initializer for new designs, and furthermore that -init is not "available" after 10.5.
>>

_______________________________________________

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: Dave DeLong <email@hidden>)

  • Prev by Date: Re: NSDateFormatter -initWithDateFormat:: vs. -init
  • Next by Date: Calling a Cocoa library from C
  • Previous by thread: Re: NSDateFormatter -initWithDateFormat:: vs. -init
  • Next by thread: Re: NSDateFormatter -initWithDateFormat:: vs. -init
  • Index(es):
    • Date
    • Thread