Re: International phone code
Re: International phone code
- Subject: Re: International phone code
- From: Piers Uso Walter <email@hidden>
- Date: Wed, 17 Jan 2007 18:35:02 +0100
On 17.01.2007, at 18:23, Claudio Procida wrote:
I premit this is NOT related to the iPhone in any way!
Is there any way to retrieve the user's own international country
code (001, 0039, 0044 etc.)??
I'm developing a plugin linked to the address book and I'd like to
extract such information in a convenient way.
Otherwise I guess I'll have to manage a GIANT lookup table and
search for the user's own country name.
If you can make these assumptions:
- user has an address book entry for her personal contact data,
including her phone number
- phone numbers are entered in 'international' format (i.e. +1...,
+39... etc.).
it should be as easy as retrieving 'my address card', then checking
the number.
Otherwise, the table sounds good, and it'll not be as gigantic as you
may think (only a couple of hundred entries).
Be aware, though, that these numbers tend to change over time (e.g.
when countries like Czechoslovakia or Yugoslavia split up, or when
countries like Monaco suddenly get their own country code (after
previously having shared country codes like Monaco did with France).
So you may have to update the table once or twice per decade ;-)
With kind regards
Piers Uso Walter <email@hidden>
ilink Kommunikationssysteme GmbH
Muenzstrasse 13, 10178 Berlin, Germany
+49 (30) 28526-185
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden