Re: [ABAddressBook addressBook] vs. [ABAddressBook sharedAddressBook]
Re: [ABAddressBook addressBook] vs. [ABAddressBook sharedAddressBook]
- Subject: Re: [ABAddressBook addressBook] vs. [ABAddressBook sharedAddressBook]
- From: David Riggle <email@hidden>
- Date: Tue, 23 Sep 2008 17:30:58 -0700
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@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden