Re: NSCell Size in NSOutlineView
Re: NSCell Size in NSOutlineView
- Subject: Re: NSCell Size in NSOutlineView
- From: Tobias Hermann <email@hidden>
- Date: Sun, 1 Jun 2003 23:48:51 +0200
Due to NSOutlineView inherits from NSTableView use NSTableView's
- (void)setRowHeight:(float)rowHeight;
method.
regards
Tobi
On Sunday, June 1, 2003, at 12:46 PM, Craig Bakalian wrote:
Hi,
It there anyway to change the size of a NSCell in an NSOutlineView?
Specifically, the height. I have text in cells that are [cell
setWraps: YES] and it wraps, yet the wrapped portion is not visible.
-(void)outlineView: (NSOutlineView *)olv willDisplayCell: (NSCell
*)cell forTableColumn: (NSTableColumn *)tableColumn item: (id)item
{
if([[tableColumn identifier] isEqualToString: @"text"])
{
[cell setWraps: YES];
[cell setStringValue: [cell stringValue]];
}
if([[tableColumn identifier] isEqualToString: @"name"])
{
[cell setEditable: NO];
}
}
Thanks
Craig Bakalian
www.eThinkingCap.com
_______________________________________________
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.