Re: Different NSCells in one NSTableView/NSTableColumn
Re: Different NSCells in one NSTableView/NSTableColumn
- Subject: Re: Different NSCells in one NSTableView/NSTableColumn
- From: Matt Neuburg <email@hidden>
- Date: Tue, 17 May 2005 13:21:26 -0700
On Mon, 16 May 2005 22:25:03 +0200, Felix Schwarz
<email@hidden> said:
>Hi everybody,
>
>I need to have different NSCells (NSPopUpCell, NSComboBoxCell,
>NSButtonCell, NSTextFieldCell) in one column on a per-row basis. Much
>like when you click on the project in XCode, click "Get info", choose
>the "Styles" tab and then have different kind of cells for the
>compiler and linker settings.
>
>Problem is, I don't find any information or sample code on how to do
>this. I tried to exchange the NSCell of the NSTableColumn in the
>
> tableView:willDisplayCell:forTableColumn:row:
>
>and
>
> tableView:objectValueForTableColumn:row:
>
>delegate calls, but both results in or more or less unusable /
>"corrupt" display of my data.
Override NSTableColumn dataCellForRow:. m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>
_______________________________________________
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