NSTableView/NSPopUpButtonCell
NSTableView/NSPopUpButtonCell
- Subject: NSTableView/NSPopUpButtonCell
- From: Phillip Mills <email@hidden>
- Date: Wed, 26 Mar 2003 10:25:13 -0500
I've checked some archives for this and found information that comes
close to being an answer, but not quite.
I have a table with two rows. I'd like the cells of the first column
to be menus and have the display of that working by creating and
configuring a NSPopUpButtonCell prototype and stuffing it into the
NSTableColumn. I also set a target and action for the cell and the
right method is being called when I make a menu selection.
However, what I don't get is how to retrieve the selected value from
the popup since the sender to my method is the NSTableView. What I
actually need is the title of the menu item that the user has selected.
Also, in tableView:objectValueForTableColumn:row: I have no idea what
to return when the popup column is the one to be refreshed from my data
source.
Any help or pointers to samples would be appreciated.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.