• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Subject: Re: Country codes vs. Language codes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Subject: Re: Country codes vs. Language codes
      • From: "M. Uli Kusterer" <email@hidden>
References: 
 >Subject: Re: Country codes vs. Language codes (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Subject: Re: Country codes vs. Language codes (From: Chuck Soper <email@hidden>)

  • Prev by Date: NSAppKitVersionNumber for 10.3.0?
  • Next by Date: Re: NSUndoManager in non-document based app using bindings
  • Previous by thread: Re: Subject: Re: Country codes vs. Language codes
  • Next by thread: Re: Subject: Re: Country codes vs. Language codes
  • Index(es):
    • Date
    • Thread