Correct way to get a person in Address Book
Correct way to get a person in Address Book
- Subject: Correct way to get a person in Address Book
- From: Darwin Zins <email@hidden>
- Date: Tue, 11 Nov 2003 20:42:40 -0600
I am new to Objective-C and Cocoa and I have a question. I have the
following code (where abID is an NSString containing the UID):
_macAddressBook = [ABAddressBook sharedAddressBook];
[_macAddressBook retain];
ABPerson * macABEntry;
macABEntry = [_macAddressBook recordForUniqueId: abID ];
Compiling this gives me a warning "assignment from incompatible pointer
type" for the last line. The code actually works, but what is the
correct way to do this?
Thank you,
Darwin
_______________________________________________
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.