Mailing Lists: Apple Mailing Lists

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

Re: Reordering of outlineview objects after rename



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

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

This email sent to email@hidden
References: 
 >Reordering of outlineview objects after rename (From: Ben Lachman <email@hidden>)
 >Re: Reordering of outlineview objects after rename (From: Hal Mueller <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.