• 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
DnD and TableViews (again)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DnD and TableViews (again)


  • Subject: DnD and TableViews (again)
  • From: Adam Radestock <email@hidden>
  • Date: Mon, 13 Nov 2006 20:53:53 +0000

Hi all,

I know this probably comes up quite a bit on the list (this is partly down to the fact that Apple's documentation is rather sparse on this topic), but how do I get my data (in this case an array of custom objects) onto the Pasteboard when selected items representing those objects in the array are dragged from a TableView?
In plain English:-
I have an array represented in a TableView, and when the user selects and drags some of the rows in the TableView, I want to copy the relevant objects to the Pasteboard so that they can be added to another array connected to another TableView...


I have implemented the
- (BOOL)tableView:(NSTableView *)tv writeRowsWithIndexes:(NSIndexSet *)rowIndexes toPasteboard:(NSPasteboard*)pboard
method, but how do I get the objects from my array using the rowIndexes parameter and stick them on the Pasteboard?


Thanks for all your help,

Adam Radestock
Glass Monkey Design Co
_______________________________________________
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: DnD and TableViews (again)
      • From: Scott Stevenson <email@hidden>
  • Prev by Date: Adding a color picker to the color panel.
  • Next by Date: Re: XMPP framework?
  • Previous by thread: Adding a color picker to the color panel.
  • Next by thread: Re: DnD and TableViews (again)
  • Index(es):
    • Date
    • Thread