Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
AddressBook Country Code -> Address Format
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AddressBook Country Code -> Address Format



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




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.