Re: NSDateFormatter -initWithDateFormat:: vs. -init

2011-11-11 Thread Charles Srstka
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"

Re: NSDateFormatter -initWithDateFormat:: vs. -init

2011-11-11 Thread Eeyore
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 i

Re: NSDateFormatter -initWithDateFormat:: vs. -init

2011-11-11 Thread Greg Parker
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. -[NSDateFo

Re: NSDateFormatter -initWithDateFormat:: vs. -init

2011-11-11 Thread Dave DeLong
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/initWithDa

NSDateFormatter -initWithDateFormat:: vs. -init

2011-11-11 Thread Jerry Krinock
NSDateFormatter documentation indicates that -initWithDateFormat:allowNaturalLanguageString: is the recommended initializer for new designs, and furthermore that -init is not "available" after 10.5. However, I find kind of the opposite: -initWithDateFormat:allowNaturalLanguageString gives unex