|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
| Hi! I hope this is the right group to ask this question... Documentation for ABAddressBook exposes a new method for 10.5: [ABAddressBook addressBook].(ABAddressBook Class Reference) Doc says that it "Returns a new instance of ABAddressBook". As I am in need of using a "private" addressbook for a project, I thought this would be perfect. With a quick test I attempted: ... ab = [ABAddressBook addressBook]; //ab = [ABAddressBook sharedAddressBook]; ABPerson *aPerson = [[[ABPerson alloc] init] autorelease]; [aPerson setValue:@"Remy" forProperty:kABFirstNameProperty]; [aPerson setValue:@"Lebeau" forProperty:kABLastNameProperty]; [ab addRecord:aPerson]; [ab save]; ... What I found out was that both sharedAddressBook and addressBook accomplished the same thing, that is adding a new person into my existing user addressbook, as opposed to generating a new addressbook... Did I misunderstand the documentation? TIA! Jeremy |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Objc-language mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
| Home | Archives | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2011 Apple Inc. All rights reserved.