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

Country code or name


  • Subject: Country code or name
  • From: Simon Stapleton <email@hidden>
  • Date: Fri, 12 Sep 2003 17:44:46 +0200

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.
  • Follow-Ups:
    • Re: Country code or name
      • From: mmalcolm crawford <email@hidden>
    • Re: Country code or name
      • From: Buddy Kurz <email@hidden>
    • Re: Country code or name
      • From: Andreas Mayer <email@hidden>
    • Re: Country code or name
      • From: Tom Harrington <email@hidden>
    • Country code or name - Use IP address ?
      • From: Thomas Treyer <email@hidden>
  • Prev by Date: Re: Cocoa Code For AIFF
  • Next by Date: Drag-and-drop in NSScrollView
  • Previous by thread: Re: Localization of Edit-Menu - Solution found
  • Next by thread: Country code or name - Use IP address ?
  • Index(es):
    • Date
    • Thread