Re: KVO question on Tree Controllers

2008-04-01 Thread Rob Keniger
On 02/04/2008, at 5:11 AM, Jeff LaMarche wrote: I've also tried using @"selectedObjects" rather than @"selection". Now this notifies me when the selection changes, except it doesn't notify me if the user clicked somewhere resulting in an empty selection, nor when the selection is currently

Re: KVO question on Tree Controllers

2008-04-01 Thread Adam Gerson
What is bound to your NSTreeController? If its something like an OutlineView you can have the delegate impliment outlineViewSelectionDidChange. I tested it in my app and it does get called when the OutlineView selection is changes to empty. Adam On Tue, Apr 1, 2008 at 3:11 PM, Jeff LaMarche <[EM

KVO question on Tree Controllers

2008-04-01 Thread Jeff LaMarche
I've registered to receive notifications from an NSTreeController instance loaded from a nib, like so: [treeController addObserver:self forKeyPath:@"selection" options:(NSKeyValueObservingOptionNew | NSKeyValueObservingOptionOld) context:NULL]; I've also tried using @"s