Detecting changes to NSPopUpButtonCell in an NSTableView
Detecting changes to NSPopUpButtonCell in an NSTableView
- Subject: Detecting changes to NSPopUpButtonCell in an NSTableView
- From: Ulai Beekam <email@hidden>
- Date: Thu, 23 Apr 2009 23:12:36 +0000
- Importance: Normal
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@hidden)
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:
This email sent to email@hidden