FROM : Adam Gerson
DATE : Wed Apr 02 01:56:34 2008
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 <<email_removed>> wrote:
> 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 @"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 empty and the user selects on the same
> object that was previously selected.
>
> I need to know when the selection becomes empty, not just when it
> changes from one node to another node. Is there another keyPath or
> notification I can register for that will do that?
>
> TIA,
> Jeff
>
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
>
DATE : Wed Apr 02 01:56:34 2008
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 <<email_removed>> wrote:
> 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 @"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 empty and the user selects on the same
> object that was previously selected.
>
> I need to know when the selection becomes empty, not just when it
> changes from one node to another node. Is there another keyPath or
> notification I can register for that will do that?
>
> TIA,
> Jeff
>
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
>
| Related mails | Author | Date |
|---|---|---|
| Jeff LaMarche | Apr 1, 21:11 | |
| Adam Gerson | Apr 2, 01:56 | |
| Rob Keniger | Apr 2, 02:54 |






Cocoa mail archive

