That's what I thought too, but it doesn't seem to work that way. I took the sample app AddressBookCocoa, changed the sharedAddressBook calls to addressBook, and the app performed exactly the same. Contacts added to the "private" address book showed up in the Address Book application, just as they did when using the sharedAddressBook. Queries to the "private" address book returned everything from the Address Book application.

Dave

On Sep 23, 2008, at 4:53 PM, Ricky Sharp wrote:


On Sep 23, 2008, at 5:44 PM, David Riggle wrote:

What is the use of the new Leopard call [ABAddressBook addressBook]? I played around with it, and it seems to be functionally equivalent to [ABAddressBook sharedAddressBook].


From the docs, the former gives you a new instance of an address book. The latter gives you the shared address book that is used by all applications.

I supposed if you needed to have a private address book used only by your application, you would use the former API.

___________________________________________________________
Ricky A. Sharp         mailto:[EMAIL PROTECTED]
Instant Interactive(tm)   http://www.instantinteractive.com




_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to