Re: Ukraine Postal District in Address Book API
Re: Ukraine Postal District in Address Book API
- Subject: Re: Ukraine Postal District in Address Book API
- From: Vince DeMarco <email@hidden>
- Date: Mon, 1 Dec 2003 22:36:56 -0800
On Dec 1, 2003, at 9:01 PM, Steve Sheets wrote:
Vince,
Once again you came through. Thanks!
I would recommend for future Address Book changes, a single call
that would return an adddress, as a NSString, formated corectly for
the given Country code. This would make it forward compatible with new
countries being added.
We added these methods to ABAddressBook.
#if MAC_OS_X_VERSION_10_3 <= MAC_OS_X_VERSION_MAX_ALLOWED
- (NSString *)recordClassFromUniqueId:(NSString *)uniqueId;
// Given a record uniqueId returns the record class name
- (NSAttributedString *)formattedAddressFromDictionary:(NSDictionary
*)address;
// Returns an attributed string containing the formatted address.
// The string's attributes match address dictionary keys
(kABAddressStreetKey for example).
// Each attribute value contains the localized description of the
key. (For example, the value
// of a Canadian kABAddressZIPKey field would be Postal Code)
- (NSString *)defaultCountryCode;
// Returns the default country code for records without specified
codes.
- (int)defaultNameOrdering;
// Returns the default name ordering defined by the user in the
Address Book preferences.
// Possible values: kABFirstNameFirst or kABLastNameFirst
#endif
I will make a conditional compile to use your headers for 10.3, vs
using my constants for 10.2. Would you by chance have the actual
values of those constants, so I do not have to type each in?
Steve Sheets
Midnight Mage Software
email@hidden
_______________________________________________
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.