• 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
AddressBook Country Code -> Address Format
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • [SOLVED] Re: AddressBook Country Code + ABAddressBook Drag Hack
      • From: Philip Dow <email@hidden>
  • Prev by Date: Re: Disable "Show Fonts..." menu item?
  • Next by Date: Image cache: Where is it and how do I refresh it?
  • Previous by thread: Live Sorting a NSTreeController
  • Next by thread: [SOLVED] Re: AddressBook Country Code + ABAddressBook Drag Hack
  • Index(es):
    • Date
    • Thread