AddressBook Country Code -> Address Format
AddressBook Country Code -> Address Format
- Subject: AddressBook Country Code -> Address Format
- From: Philip Dow <email@hidden>
- Date: Sat, 27 May 2006 16:32:37 +0200
I'm using the AddressBook framework to look up information on records
by unique id. Once I have the record I can successfully pull all
kinds of information from it using the framework.
One piece of information I'm dealing with is address information. The
framework stores this data in a dictionary accessible by a limited
number of keys, ie City, Country, Street, Zip and State.
Additionally, the dictionary includes a CountryCode key with values
of "us" for United States, "at" for Austria and so on.
Address Book will correctly order and display the rest of the keys in
the dictionary based on the country code. Is it possible to derive an
address format from this country code programmatically using the
AddressBook framework or any other cocoa framework, so as to also
properly format and display a particular address?
The AddressBook framework provides a single function,
ABLocalizedPropertyOrLabel(), but that will not convert a country
code such as "us" to the appropriate address format. Any thoughts?
-Phil
_______________________________________________
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