Dragging from a NSTable bound to NSArrayController
Dragging from a NSTable bound to NSArrayController
- Subject: Dragging from a NSTable bound to NSArrayController
- From: "David Brennan" <email@hidden>
- Date: Thu, 8 Mar 2007 18:01:09 +0000
Hi,
I have setup up a NSTable, that is bound to an NSArrayController. When
I select a number of items in the table. Then do a drag the function
- (BOOL)tableView:(NSTableView *)aTableView
writeRowsWithIndexes:(NSIndexSet *)rowIndexes
toPasteboard:(NSPasteboard*)pboard
gets called, but my problem is that if the user has sorted the items
in the table, the rowIndexes that get passed to tableView:
writeRowsWithIndexes: toPasteboard: do not match to the correct items
in the NSArrayController.
How do I find the correct items.
Thanks,
Dave.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden