• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Detecting changes to NSPopUpButtonCell in an NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting changes to NSPopUpButtonCell in an NSTableView


  • Subject: Re: Detecting changes to NSPopUpButtonCell in an NSTableView
  • From: ALEXander <email@hidden>
  • Date: Fri, 24 Apr 2009 00:18:08 +0100

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@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

_______________________________________________

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


  • Follow-Ups:
    • RE: Detecting changes to NSPopUpButtonCell in an NSTableView
      • From: Ulai Beekam <email@hidden>
References: 
 >Detecting changes to NSPopUpButtonCell in an NSTableView (From: Ulai Beekam <email@hidden>)

  • Prev by Date: Detecting changes to NSPopUpButtonCell in an NSTableView
  • Next by Date: Re: NSTableView variable row height and noteHeightOfRowsWithIndexesChanged during live resize
  • Previous by thread: Detecting changes to NSPopUpButtonCell in an NSTableView
  • Next by thread: RE: Detecting changes to NSPopUpButtonCell in an NSTableView
  • Index(es):
    • Date
    • Thread