NSPopUpButtons in an NSTableView
NSPopUpButtons in an NSTableView
- Subject: NSPopUpButtons in an NSTableView
- From: Greg Hulands <email@hidden>
- Date: Fri, 10 May 2002 10:40:28 +1000
Hi,
I have a column in an NSTableView which displays NSPopUpButtons. I have set
the target and selector of the cell in cell:willDisplay:etc but when my
selector gets called the sender is the tableview and not the popup. I assume
that this is normal, so I am able to get the column and then the cell. But
the cell I receive does not have the correct selected item. Is this because
the column uses the same cell for all rows of the column?
I have found in other posts that I would have to subclass NSTableColumn and
return a unique cell for each row. Is the best way to manage this with an
NSMutableDictionary with the row as the key? Does anyone have suggestions on
how to do this properly.
I am not sure that subclassing is the way to go. I thought that I could just
use the cell:willDisplay to set it up (which I do now and works fine) and
then set the selected item in my selector that gets called.
Any suggestions are greatly appreciated.
Regards,
Greg
_______________________________________________
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.