>> 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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com