Re: rows of pop up button cells with unique menus
Re: rows of pop up button cells with unique menus
- Subject: Re: rows of pop up button cells with unique menus
- From: Fritz Anderson <email@hidden>
- Date: Wed, 20 Sep 2006 14:06:52 -0500
On Sep 20, 2006, at 1:57 PM, R. Matthew Emerson wrote:
I have looked through the archives and searched Google for
information on using NSPopUpButtonCells in NSTableViews.
...
Now, my application, I have a table with two columns. One column
shows a user's name, and the other an NSPopUpButton cell that I want
to hold a list of the user's email addresses that I have extracted
from an X.509 certificate. (There would typically be only one or
two email addresses listed.)
When the pop up button is clicked, the menu pops up, and is
populated with the correct information in the menuNeedsUpdate:
delegate method. The problem is that I can't figure out how to get
the pop up button cell in the relevant row to display the selected
item after the button pops down.
I would think that I need each pop up button cell to have its very
own menu, but I can't quite see how to arrange this.
What happens if you provide a NSTableView delegate method
tableView:willDisplayCell:forTableColumn:row: that populates the cell
with that row's menu items and selection?
Mind you, that isn't a rhetorical or pedagogical question; I don't
know the answer myself.
-- F
--
Fritz Anderson -- http://www.manoverboard.org/
Consulting Programmer -- http://resume.manoverboard.org/
Step into Xcode, Now Available to a Wailing World -- http://six.manoverboard.org/
_______________________________________________
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