Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSArrayController and moving around its contents.



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.