• 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: Country code or name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Country code or name


  • Subject: Re: Country code or name
  • From: Buddy Kurz <email@hidden>
  • Date: Fri, 12 Sep 2003 16:16:08 -0700

What about using the address book api to get the current 'me' and corresponding address


On Friday, September 12, 2003, at 08:44 AM, Simon Stapleton wrote:

Hi there collective genius

Well, I've been loking all over the place, but I can't seem to find it. I need to be able to at least guess the current user's country (not timezone, that's not specific enough, or language, that doesn't work either). I'd like to avoid having to code this all up myself, but can do if needs be.

The best I can do at the moment is to query NSTimeZone for the current time zone setting and make a guess from there (as a part of initial app setup, to provide a reasonable default) and then set a preference in the app's domain. But it seems to me that there should be a better way.

Any ideas, RTFMs, whatever, would be appreciated.

Simon
--
Objective-C Enterprise Objects resurrected on Mac OS X. <http://www.tufty.co.uk/Software/EOPage.html>
--
PGP Key Id : 0x50D0698D
_______________________________________________
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.
_______________________________________________
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.

  • Follow-Ups:
    • Re: Country code or name
      • From: Tom Harrington <email@hidden>
References: 
 >Country code or name (From: Simon Stapleton <email@hidden>)

  • Prev by Date: Re: Default app for doc type problem
  • Next by Date: Re: [Slightly OT]:Software Update app & "inactive" items
  • Previous by thread: Re: Country code or name
  • Next by thread: Re: Country code or name
  • Index(es):
    • Date
    • Thread