Re: NSArrayController, drag & drop, objectAtIndex?
Re: NSArrayController, drag & drop, objectAtIndex?
- Subject: Re: NSArrayController, drag & drop, objectAtIndex?
- From: Seth Willits <email@hidden>
- Date: Thu, 21 Nov 2013 14:47:05 -0800
On Nov 21, 2013, at 2:43 PM, Todd Heberlein <email@hidden> wrote:
> I have an NSMutableArray <—> NSArrayController <—> NSTableView
>
> When I click on a row to drag it to a different location in the same table, the row index passed into
>
> -tableView:writeRowsWithIndexes:toPasteboard:
>
> is the row displayed in the NSTableView, but this isn’t the same row that the object is in in the NSMutableArray. That is, the order of objects in the NSTableView doesn’t match the order of objects in the NSMutableArray.
It matches the order in the array controller’s arrangedObjects array.
--
Seth Willits
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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