Is NSPopUpButton KVO compliant?
Is NSPopUpButton KVO compliant?
- Subject: Is NSPopUpButton KVO compliant?
- From: Mark Lilback <email@hidden>
- Date: Mon, 15 May 2006 22:50:45 -0500
I'm trying to programatically observe when the selected item of a
NSPopUpButton (and/or NSPopUpButtonCell) changes. I've tried:
[[popUp cell] addObserver: self forKeyPath: @"selectedItem" options:
0 context: nil];
[[popUp cell] addObserver: self forKeyPath: @"indexOfSelectedItem"
options: 0 context: nil];
[popUp addObserver: self forKeyPath: @"selectedItem" options: 0
context: nil];
[popUp addObserver: self forKeyPath: @"indexOfSelectedItem" options:
0 context: nil];
But when the popup value changes, my
observeValueForKeyPath:ofObject:change:context: method is never called.
Is NSPopUpButton[Cell] not KVO-compliant? Or is there another key I
should be observing?
_____________________________________________________________________
"The best assumption to have
Mark J. Lilback is that any commonly held
<email@hidden> belief is wrong." -- Ken Olsen,
http://www.lilback.com/ founder, Digital Equip. Corp.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden