• 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: Problem with vCard and AddressBook ABPerson UID, HELP!!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >re: Problem with vCard and AddressBook ABPerson UID, HELP!! (From: Ben Trumbull <email@hidden>)

  • Prev by Date: Re: How to subclass UIButton?
  • Next by Date: Re: Alternative Location of Cocoa ID3 Framework??
  • Previous by thread: re: Problem with vCard and AddressBook ABPerson UID, HELP!!
  • Next by thread: Re: Problem with vCard and AddressBook ABPerson UID, HELP!!
  • Index(es):
    • Date
    • Thread