You can bind the selection of the popup to a variable and then observe
that variable via KVO. I did that on a single NSPopUpButton, you would
still need to get the affected row.
ALEXander.
On 24.04.2009, at 00:12, Ulai Beekam wrote:
Hi,
We all know that we can detect when regular text in an
NSTableView finishes editing using the control notification
method controlTextDidEndEditing:.
My problem, however, is this: In one of the columns I have attached
an NSPopUpButtonCell. The pop up button has two predetermined
constant choices "Foo" and "Bar" (always these two fixed choices).
How can I detect it when these values are have been changed (after
having selected a menu item)? The problem is that abovementioned
notification method, controlTextDidEndEditing:, is not getting
called in this case.
How, then, can I do some stuff after an NSPopUpButtonCell has
changed a value? Is there any other notification method I can use? I
have not yet seen such a method in the docs.
Thanks, U.
_________________________________________________________________
Show them the way! Add maps and directions to your party invites.
http://www.microsoft.com/windows/windowslive/products/events.aspx_______________________________________________
Cocoa-dev mailing list ([email protected])
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/alexander%40wackazong.com
This email sent to [email protected]
_______________________________________________
Cocoa-dev mailing list ([email protected])
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/archive%40mail-archive.com
This email sent to [email protected]