• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSArrayController and moving around its contents.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: About NSAppleScriptErrorNumber = -2709
  • Next by Date: NSNumberFormatter strange symbols on PPC/10.4
  • Previous by thread: Re: About NSAppleScriptErrorNumber = -2709
  • Next by thread: NSNumberFormatter strange symbols on PPC/10.4
  • Index(es):
    • Date
    • Thread