Ukraine Postal District in Address Book API
Ukraine Postal District in Address Book API
- Subject: Ukraine Postal District in Address Book API
- From: Steve Sheets <email@hidden>
- Date: Mon, 1 Dec 2003 22:35:13 -0500
Two issues..
First, I am using the new Address Book 10.3 API (Panther) with Project
Builder (not XCode). I am mostly just using the 10.2 APIs, along with
the new Property ID Strings (ex. Nickname, Middle Name).
To correctly display an international address, you look at the
kABAddressCountryCodeKey, a 2 character identifier, that tells you what
country the address is for. Using the Address Book as model, you can
see other countries have different formats to displaying address (ex
Address City State Zip Country vs Country Zip City Address vs Address
Zip City Country). You get the idea. Several countries do not have the
equivalent of states, so that field is not used.
However there is one country, Ukraine, that not only has City & State,
but also has a Postal District field. If you set Address Book to
display address from Ukraine, that field becomes editable. It is ONLY
time you can enter/edit that field in Address Book AND the API provides
no Property identifier to establish how to read that bit of information.
Yes, I can scan through an address entry, look for all property
strings, and identify the unused one as Postal District. I have not
done that yet. Or someone who created address book API could give me
the missing property string.
Secondly, I am writing an address book application that needs to run
under both 10.2 & 10.3. I will only use 10.2 calls, however I need to
access the 10.3 Properties globals, to look into a person address book
entry (ex. to see his first name, middle name & last name). I am having
problems linking the 10.3 Address Book Framework. It wants me to have
all the 10.3 interfaces, not just address book. Even if I did that, the
10.3 globals would require 10.3 only. I do not know why the Properties
are set as globals. Are they not constants? The property for First name
in an address book entry will always be the same? Otherwise, address
books would not be forward compatible.
Know this, I am thinking of just hard coding the Properties strings
that I need for the new 10.3 fields (ex. nickname, middle name, etc).
Is there any problem with this?
Thank you,
Steve Sheets
Midnight Mage Software
email@hidden
------------------------------------------------------------------------
------------------------------------------------------------
Check out our newest release of RollCall Directory 1.0.1 at
http://midnightmage.com/rollcall.html! RollCall Directory is a Mac OS
X application designed to provide a printable graphic directory of your
Address Book, in the format you require, as well as mailing labels for
a variety of uses. Now with German & French Localization.
------------------------------------------------------------------------
------------------------------------------------------------
_______________________________________________
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.