Re: Subject: Re: Country codes vs. Language codes
Re: Subject: Re: Country codes vs. Language codes
- Subject: Re: Subject: Re: Country codes vs. Language codes
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Wed, 15 Sep 2004 21:45:54 +0200
On 15.09.2004, at 18:42, Chuck Soper wrote:
Thanks for your post. Do you know if @"SelectedCity" is supported and
documented?
Sorry, no idea.
Is there a way to get this information on 10.2?
NSUserDefaultsController requires 10.3.
This should work also prior to 10.3:
NSArray *lastSelectedCity = [[[ NSUserDefaults standardUserDefaults ]
dictionaryRepresentation] objectForKey: @"SelectedCity" ];
At 8:30 AM +0200 9/15/04, Gerriet M. Denkmann wrote:
Hi Uli,
if you want to know where a computer is located (as opposed to what
language the administrator prefers to read) what about:
id a = [ [ NSUserDefaultsController sharedUserDefaultsController ]
values ];
NSArray *lastSelectedCity = [ a valueForKey: @"SelectedCity" ];
/* Format of lastSelectedCity array:
* Index: Content: Example Remark
* 0 Latitude
* 1 Longitude
* 2 Timezone 0 = UTC, 1 = Honolulu, ..., 30 = Pago Pago
* 3 Region Europe/Oslo
* 4 Abbrv. NO often empty
* 5 City Oslo
* 6 Country Norway sometimes empty, e.g. Taipeh
**/
Gerriet.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden