Re: [iOS 4.2] NSDateFormatter -init not available in iOS > 3.2 - how to init then?
Re: [iOS 4.2] NSDateFormatter -init not available in iOS > 3.2 - how to init then?
- Subject: Re: [iOS 4.2] NSDateFormatter -init not available in iOS > 3.2 - how to init then?
- From: WT <email@hidden>
- Date: Sun, 12 Dec 2010 21:12:18 -0200
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#//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 (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