NSTreeController, canRemove binding

2008-03-22 Thread Alexey Zakhlestin
Mac OS X 10.5.2 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 added NSLog() to the method, which handles click on

Re: NSTreeController, canRemove binding

2008-03-22 Thread Jeff Nouwen
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

Re: NSTreeController, canRemove binding

2008-03-22 Thread Alexey Zakhlestin
On 3/22/08, Jeff Nouwen [EMAIL PROTECTED] wrote: 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

Re: NSTreeController, canRemove binding

2008-03-22 Thread Alexey Zakhlestin
SOLVED NSToolbarItem, which I was trying to disable had Autovalidates checked. After switching that off everything works as supposed On 3/22/08, Alexey Zakhlestin [EMAIL PROTECTED] wrote: On 3/22/08, Jeff Nouwen [EMAIL PROTECTED] wrote: On Mar-22-2008, at 3:20 AM, Alexey Zakhlestin wrote: