Re: Problem with vCard and AddressBook ABPerson UID, HELP!!
Re: Problem with vCard and AddressBook ABPerson UID, HELP!!
- Subject: Re: Problem with vCard and AddressBook ABPerson UID, HELP!!
- From: Jens Alfke <email@hidden>
- Date: Wed, 7 Apr 2010 21:47:05 -0700
>> I'm trying to use the AddressBook as my main person "database" in my application. I've create a small function that accepts drag - drops from the Address book to add a new person in my app. So far so good.
>>
>> I'm trying after to show in my application details about that linked person and that's where everything falls down.
>>
>> On drop, I read the vCard created by the AddressBook using this line:
>>
>> ABPerson* aPerson = [[ABPerson alloc] initWithVCardRepresentation:filedata];
It’s been a long time since I did this, but IIRC you don’t want to use the vCard data on the pasteboard. There’s another data flavor put there by AB that contains the cards UID, I think. Try getting the PasteboardPeeker app [it’s Apple sample code] and dragging from AB.app into it, to see what all the data types are.
—Jens_______________________________________________
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