Re: AddressBook Woes
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