• 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
Re: Ukraine Postal District in Address Book API
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Ukraine Postal District in Address Book API (From: Steve Sheets <email@hidden>)

  • Prev by Date: Re: Semi-OT - shift-tab behavior broken for edit fields?
  • Next by Date: Re: Source code documentation systems for Cocoa
  • Previous by thread: Re: Ukraine Postal District in Address Book API
  • Next by thread: Semi-OT - shift-tab behavior broken for edit fields?
  • Index(es):
    • Date
    • Thread