• 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: Chuck Soper <email@hidden>
  • Date: Wed, 15 Sep 2004 09:42:22 -0700

Thanks for your post. Do you know if @"SelectedCity" is supported and documented? Is there a way to get this information on 10.2? NSUserDefaultsController requires 10.3.
Thanks,
Chuck


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: "Gerriet M. Denkmann" <email@hidden>
References: 
 >Subject: Re: Country codes vs. Language codes (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: Get my application to be in the dock automatically.
  • Next by Date: Re: build numbers
  • Previous by thread: Subject: Re: Country codes vs. Language codes
  • Next by thread: Re: Subject: Re: Country codes vs. Language codes
  • Index(es):
    • Date
    • Thread