• 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
Re: Reordering of outlineview objects after rename
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Reordering of outlineview objects after rename (From: Ben Lachman <email@hidden>)
 >Re: Reordering of outlineview objects after rename (From: Hal Mueller <email@hidden>)

  • Prev by Date: URL Connection block?
  • Next by Date: Re: Calling cocoa app from command line
  • Previous by thread: Re: Reordering of outlineview objects after rename
  • Next by thread: Re: Reordering of outlineview objects after rename
  • Index(es):
    • Date
    • Thread