• 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: [ABAddressBook addressBook] vs. [ABAddressBook sharedAddressBook]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >[ABAddressBook addressBook] vs. [ABAddressBook sharedAddressBook] (From: David Riggle <email@hidden>)
 >Re: [ABAddressBook addressBook] vs. [ABAddressBook sharedAddressBook] (From: Ricky Sharp <email@hidden>)

  • Prev by Date: Re: NSMutableURLRequest setHTTPBody
  • Next by Date: Re: Menu item issues when programmatically updating an application's main menu
  • Previous by thread: Re: [ABAddressBook addressBook] vs. [ABAddressBook sharedAddressBook]
  • Next by thread: NSMutableURLRequest setHTTPBody
  • Index(es):
    • Date
    • Thread