Re: using NSCell with NSOutlineView
Re: using NSCell with NSOutlineView
- Subject: Re: using NSCell with NSOutlineView
- From: Gérard Iglesias <email@hidden>
- Date: Sun, 24 Mar 2002 01:07:47 +0100
Subclass NSCell or something else, in fact you have to know that the
NSBrowserCell display an image and a text in the same time very well, I
use it for this kind of need in my outline view :
// set the data cell for the table column you want
[aTableColumn setDataCell:[[[NSBrowserCell alloc] init] autorelease]]
// While filling the cell, when you receive a message as the
delegate that the tableview/outlineview will display the cell
[aBrowserCell setStringValue:aName];
[aBrowserCell setImage:anIcon];
[aBrowserCell setLeaf:YES];
Regards
On Saturday, March 23, 2002, at 11:55 PM, Gore wrote:
I would like to be able to use one or two cell(s) to display both a
checkbox and a text field in the same table column. Like the
outlineview in OmniOutliner. Do I have to use 2 NSCells to do this, and
how do I implement them into the table view ?
Or can I use a NSButtonCell of checkbox type, but how do I then control
both the title and the checkbox value of that cell? any examples on
this is welcome...please help
_______________________________________________
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.
_______________________________________________
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.