Dragging multiple AB record
Dragging multiple AB record
- Subject: Dragging multiple AB record
- From: email@hidden
- Date: Fri, 25 Aug 2006 06:54:45 -0400
Date: Fri, 25 Aug 2006 6:53:45
From: Joe Young <email@hidden>
Subject: Dragging multiple AB record
I am trying to drag more than one record from the Address Book to my
table and then read each record to fill in the table. Below is code
that will read the first record but how do I get at muliple records
dragged to the table.
- (BOOL)tableView:(NSTableView*)table acceptDrop:(id
<NSDraggingInfo>)sender
row:(int)dropRow dropOperation:(NSTableViewDropOperation)operation;
{
NSPasteboard *pb = [sender draggingPasteboard];
NSString *firstName;
NSString *lastName;
if (table == [self _phoneBookTable]) {
ABPerson *droppedPerson = [[[ABPerson alloc]
initWithVCardRepresentation:[pb dataForType:NSVCardPboardType]]
autorelease];
firstName = [droppedPerson valueForProperty:kABFirstNameProperty];
lastName = [droppedPerson valueForProperty:kABLastNameProperty];
}
}
Thnaks for any help,
--Joe--
_______________________________________________
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