• 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: NSPopUpButtonCell in subclass of NSCell - Selection not working
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSPopUpButtonCell in subclass of NSCell - Selection not working


  • Subject: Re: NSPopUpButtonCell in subclass of NSCell - Selection not working
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Mon, 8 Nov 2004 16:06:56 +0100

At 14:16 Uhr +0100 08.11.2004, Michael Becker wrote:
However, I cannot see any way of *receiving* the selection changes. Since the "sender" (see above) is the NSTableView, I cannot seem to reach the actual NSPopUpButton which the user just clicked and changed.

You could use the menu item's "tag" for that. Assign this action to each menu item, and set the items' tags to their numbers. Then all you have to do is look at [sender tag] to know which item was picked.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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
References: 
 >NSPopUpButtonCell in subclass of NSCell - Selection not working (From: Michael Becker <email@hidden>)

  • Prev by Date: Re: $10 for a few minutes work
  • Next by Date: Re: $10 for a few minutes work
  • Previous by thread: [SOLVED] Re: NSPopUpButtonCell in subclass of NSCell - Selection not working
  • Next by thread: About Safari development
  • Index(es):
    • Date
    • Thread