rows of pop up button cells with unique menus
rows of pop up button cells with unique menus
- Subject: rows of pop up button cells with unique menus
- From: "R. Matthew Emerson" <email@hidden>
- Date: Wed, 20 Sep 2006 14:57:56 -0400
I have looked through the archives and searched Google for
information on using NSPopUpButtonCells in NSTableViews.
In particular, I have followed http://www.corbinstreehouse.com/blog/?
p=22.
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.
I feel like I only vaguely understand how the NSTableView uses
prototype cells to draw all the rows, so maybe this lack of
background is confusing me. If the same cell is used to draw all the
rows, how can I have a separate menu for each cell?
If anyone could point me at some documentation or examples, I would
certainly appreciate it. I know this sort of question has been asked
in the past, so I apologize if I have overlooked a previously-given
answer.
_______________________________________________
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