Reordering NSOutlineView through drag&drop (binding)
Reordering NSOutlineView through drag&drop (binding)
- Subject: Reordering NSOutlineView through drag&drop (binding)
- From: "Raphael Sebbe" <email@hidden>
- Date: Wed, 30 May 2007 07:46:26 +0200
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:
This email sent to email@hidden