• 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: NSTreeController, "canRemove" binding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTreeController, "canRemove" binding


  • Subject: Re: NSTreeController, "canRemove" binding
  • From: Jeff Nouwen <email@hidden>
  • Date: Sat, 22 Mar 2008 09:01:33 -0600

On Mar-22-2008, at 3:20 AM, Alexey Zakhlestin wrote:
I have NSOutlineView bound to NSTreeController
Additionally, I have a button, which is bound to "canRemove" of
NSTreeController. Unfortunately, button never gets disabled (even if I
have an empty selection in NSOutlineView)

I've run into this before and in my case it was because I forgot to bind the Selection Index Paths of my Outline View Content to the selectionIndexPaths key path of my tree controller. Forgetting this setting caused additional problems like insert: inserting after the last-created entry instead of where the selection in the UI was.


Do you have this binding set on your outline view?

- Jeff

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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


  • Follow-Ups:
    • Re: NSTreeController, "canRemove" binding
      • From: "Alexey Zakhlestin" <email@hidden>
References: 
 >NSTreeController, "canRemove" binding (From: "Alexey Zakhlestin" <email@hidden>)

  • Prev by Date: Re: [iPhone] NSTableView and NSIndexPath
  • Next by Date: Re: Creating custom sheets
  • Previous by thread: NSTreeController, "canRemove" binding
  • Next by thread: Re: NSTreeController, "canRemove" binding
  • Index(es):
    • Date
    • Thread