• 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
Dragging multiple AB record
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Dragging multiple AB record
      • From: Stefan <email@hidden>
  • Prev by Date: Re: Process events in a QuickTime export callback
  • Next by Date: Re: Links in NSTextField
  • Previous by thread: Re: Core Data document-based app design decision?
  • Next by thread: Re: Dragging multiple AB record
  • Index(es):
    • Date
    • Thread