Re: Simple question: getting 'locale' dictionary for NSCalendarDate class routine
Re: Simple question: getting 'locale' dictionary for NSCalendarDate class routine
- Subject: Re: Simple question: getting 'locale' dictionary for NSCalendarDate class routine
- From: Chris Kane <email@hidden>
- Date: Fri, 16 Apr 2004 13:38:31 -0700
On Apr 16, 2004, at 12:36 PM, Frederick C. Lee wrote:
The NSCalendarDate doc talks about using the 'locale' dictionary with
such routines as:
- (NSString *)descriptionWithLocale:(NSDictionary *)locale
My question: how do I access this 'locale' dictionary?
Use the following expression to produce a locale dictionary suitable
for passing into such routines, if you want the algorithm customized to
the user's locale preferences:
[[NSUserDefaults standardUserDefaults] dictionaryRepresentation]
If you pass 'nil' as the argument, the system locale is used, which
looks American English-like.
Chris Kane
Cocoa Frameworks, Apple
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.