DnD and TableViews (again)
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