NSArrayController and moving around its contents.
NSArrayController and moving around its contents.
- Subject: NSArrayController and moving around its contents.
- From: Alexander Cohen <email@hidden>
- Date: Mon, 08 Dec 2008 21:09:53 -0500
I have a custom view that pretty much shows an ordered list of items
in a grid ( kindof like iPhoto ). This custom view exposes a content
binding. Items in this grid can be reordered by drag n drop. Then this
occurs, i have an NSIndexSet of selected indexes and a drop index
where i need to move all the items to. Whats the best way to do this?
If i just had a normal array, it would be easy just by removing and
adding them back in the right place. But with the array controller, if
i remove then add back in i get two content changes which could
possibly make the view flickr since on content changes, there is some
fade in and moving animations. Am i missing something obvious like a
moveObjectsAtIndexes:toIndex: ?
thx
AC
_______________________________________________
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