Re: Reordering of outlineview objects after rename
Re: Reordering of outlineview objects after rename
- Subject: Re: Reordering of outlineview objects after rename
- From: Ben Lachman <email@hidden>
- Date: Thu, 15 Mar 2007 17:36:09 -0400
Yeah, thats basically what I did. I observe selection.name on the
tree controller and when that fires I call rearrangeObjects. However
apparently rearrangeObjects sets off a change notification on the
selection key creating an infinite loop. Any idea of how to reorder
the data without setting off change notes? I guess I could stop
observing, call rearrangeObjects and then start observing again, but
that seems hackish...
->Ben
--
Ben Lachman
email@hidden
email@hidden
740.590.0009
On Mar 15, 2007, at 12:49 PM, Hal Mueller wrote:
I would think you want an observer on the item's name; maybe the
observer would be the item itself. When the observer gets the -
observeValueForKeyPath... message it would trigger [treeController
rearrangeObjects] or whatever other methods are needed.
I've never actually used a tree controller, so there may be a
better way.
Hal
_______________________________________________
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
_______________________________________________
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