Re: Reordering NSOutlineView through drag&drop (binding)
Re: Reordering NSOutlineView through drag&drop (binding)
- Subject: Re: Reordering NSOutlineView through drag&drop (binding)
- From: Sam Stigler <email@hidden>
- Date: Wed, 30 May 2007 16:23:29 +1000
I don't have any experience with this myself, but Scott Stevenson
wrote a great blog post on this very topic: http://theocacao.com/
document.page/130 . Check it out -- it'll give you a good start!
-Sam
On May 30, 2007, at 3:46 PM, Raphael Sebbe wrote:
Hi to the list.
I have recently come up with a problem, trying to reorder an
outlineview with drag and drop.
the tree controller's contentArray is provided by the document. I want
to change order in that array when I move the items around in the
outline view. So far I could handle that by implementing the related
datasource methods (and KVO notifications are sent for that array),
but, whenever the array in changed, that change is not reflected in
the GUI (the old order is preserved).
This may be related to the sort descriptors, which I don't use, and
in which case the "natural order" is used. Well, no... not after I
change the array. I could get a workaround by setting that array to an
empty one, then the reordered one but this has other side effects I
dont want.
I also tried -[NSTreeController rearrangeObjects], with no success.
Thanks in advance infor any clues !
Raphael
_______________________________________________
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:
40mac.com
This email sent to email@hidden
_______________________________________________
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