On Dec 12, 2010, at 8:58 PM, Siegfried wrote: > On 12/12/2010, at 20:41, WT wrote: > >> Hello, >> >> according to the iOS 4.2 NSDateFormatter class documentation, the -init >> method is available in iOS 2.0 through iOS 3.2, > > Sorry, but the init method? Just to confirm, where exactly in the > documentation did you read about this? > >> but it does not offer an alternative method to initialize a newly allocated >> date formatter (or, if it does, I missed it on repeated readings of the >> docs). How then? > > Are you sure you mean init method?
Yes, I'm quite sure. See http://developer.apple.com/library/ios/#documentation/Cocoa/Reference/Foundation/Classes/NSDateFormatter_Class/DeprecationAppendix/AppendixADeprecatedAPI.html%23//apple_ref/doc/uid/20000447-BAJBJEGB > 2.Would be interesting to check what happens in self.localePtBr maybe? Yes, I forgot to add the code for that. Here it is: - (NSLocale*) localePtBr; { if (localePtBr_ == nil) { localePtBr_ = [[NSLocale alloc] initWithLocaleIdentifier: @"pt_BR"]; } return localePtBr_; } As you can see, it can't be any simpler. WT _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com