Re: Different NSCells in an NSOutlineView
Re: Different NSCells in an NSOutlineView
- Subject: Re: Different NSCells in an NSOutlineView
- From: malcom <email@hidden>
- Date: Thu, 20 Oct 2005 10:13:53 +0200
Hi. Yes that's ok. I need to have different NSCell for each row. Where
is this delegate into NSOutlineView? I can't find it.... I have used
[[sideBarView outlineTableColumn] setDataCell:imageAndTextCell];
to set the default NSCell class for my Outlineview. Probability I need
to istance a new kind of class and return it in your delegate. Then
from
- (id)outlineView:(NSOutlineView *)outlineView
objectValueForTableColumn:(NSTableColumn *)tableColumn byItem:(id)item
{
i need to set the custom value of this class. Right?
2005/10/20, Jerry Krinock <email@hidden>:
> on 05/10/19 15:50, malcom at email@hidden wrote:
>
> > All works fine but now I would to use two different kind of NSCell
> > inside my OutlineView. Is this possible? And how? (anyone can provide
> > a short example or link to a project example).
>
> I believe this is only possible on a per-row basis and not per-column. You
> do it by returning different cells in the delegate method:
>
> - (id)dataCellForRow:(int)iRow
>
> As you can see, unfortunately there is only one argument there, the row
> index. They don't tell you what column they're trying to draw.
>
>
> _______________________________________________
> 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
>
--
cocoaworks software
software development
email@hidden
_______________________________________________
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