FROM : Alexey Zakhlestin
DATE : Sat Mar 22 17:22:20 2008
On 3/22/08, Jeff Nouwen <<email_removed>> 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
> > 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?
Tried it now, but that did not help.
Actually, I am binding column of NSOutlineView to NSTreeController
using "value" binding. Documentation says, that explicit binding of
selectionIndexPaths is not needed this way
--
Alexey Zakhlestin
http://blog.milkfarmsoft.com/
DATE : Sat Mar 22 17:22:20 2008
On 3/22/08, Jeff Nouwen <<email_removed>> 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
> > 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?
Tried it now, but that did not help.
Actually, I am binding column of NSOutlineView to NSTreeController
using "value" binding. Documentation says, that explicit binding of
selectionIndexPaths is not needed this way
--
Alexey Zakhlestin
http://blog.milkfarmsoft.com/
| Related mails | Author | Date |
|---|---|---|
| Alexey Zakhlestin | Mar 22, 10:20 | |
| Jeff Nouwen | Mar 22, 16:01 | |
| Alexey Zakhlestin | Mar 22, 17:22 | |
| Alexey Zakhlestin | Mar 22, 18:15 |






Cocoa mail archive

