Re: NSTableView and NSPopUpButton
Re: NSTableView and NSPopUpButton
- Subject: Re: NSTableView and NSPopUpButton
- From: Jonathan Jackel <email@hidden>
- Date: Sun, 9 Nov 2003 07:43:17 -0500
On Nov 9, 2003, at 12:39 AM, Chris Campbell wrote:
I have a tableview with a column of popupbuttons. I want each
popupbutton to have it's own unique list of items. I must be missing
something because all the popupbuttons are using the default.
No, you are not missing something. The datacell is a generic cell that
is identical for all rows of a column. You want to make the cell
different for each row. You can't with a standard table column.
Google is your friend. I googled "NSTableColumn different datacell
each row" and was taken immediately to the NSTableColumn docs and the
method dataCellForRow, which provide a way to do exactly what you want.
Read those docs.
Jonathan
_______________________________________________
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.