• 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: AddressBook Woes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AddressBook Woes


  • Subject: Re: AddressBook Woes
  • From: Nick Zitzmann <email@hidden>
  • Date: Fri, 15 Oct 2004 00:38:42 -0600


On Oct 15, 2004, at 12:09 AM, Daniel Todd Currie wrote:

I'm having some trouble getting data out of my ABPerson pasteboard drop. I use the following code in the -performDragOperation method:

ABPerson *droppedPerson = [[ABPerson alloc] initWithVCardRepresentation:[pboard dataForType:NSVCardPboardType]];

Try changing the above to this:

ABPerson *droppedPerson = [[[ABPerson alloc] init] initWithVCardRepresentation:[pboard dataForType:NSVCardPboardType]];

IIRC, there's a bug in the current AddressBook framework where -initWithVCardRepresentation: does not correctly initialize the ABPerson, and this workaround solves the problem.

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >AddressBook Woes (From: Daniel Todd Currie <email@hidden>)

  • Prev by Date: AddressBook Woes
  • Next by Date: Re: IPAddressFormatter?
  • Previous by thread: AddressBook Woes
  • Next by thread: NSLock vs. NSRecursiveLock
  • Index(es):
    • Date
    • Thread