Re: Changing Cell Size in a TableView?
Re: Changing Cell Size in a TableView?
- Subject: Re: Changing Cell Size in a TableView?
- From: Steven Spencer <email@hidden>
- Date: Fri, 16 Jul 2004 15:09:24 +0100
Try this :
- (void)setTableViewFont:(NSTableView *)table font:(NSFont *)font
{
NSArray *columns = [table tableColumns];
NSEnumerator *columnEnumerator = [columns objectEnumerator];
NSTableColumn *tableColumn;
if ([columns count]) {
while (tableColumn = [columnEnumerator nextObject]) {
[[tableColumn dataCell] setFont:font];}
[table setRowHeight:[[[columns objectAtIndex:0] dataCell]
cellSize].height];
[table reloadData];
}
}
- Steve Spencer
Message: 7
To: Cocoa Dev Dev <email@hidden>
From: Jerry LeVan <email@hidden>
Subject: Changing Cell Size in at TableView?
Date: Thu, 15 Jul 2004 20:51:28 -0400
Well,
I have figured out how to change the size of the font in
a table view.
The bad news is that I can't figure out how to set the
cell size in case the user chooses a *large* font.
Is it possible to adjust a table view to accommodate a
larger font size (dynamically)?
Thanks
Jerry
--__--__--
_______________________________________________
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.