Re: Changing Cell Size in at TableView?
Re: Changing Cell Size in at TableView?
- Subject: Re: Changing Cell Size in at TableView?
- From: Jerry LeVan <email@hidden>
- Date: Fri, 16 Jul 2004 07:20:33 -0400
Yes, I found that late last night. The font metrics are still
messing up a bit... here is what I am currently using in
my subclassed table view. This works fine with some fonts
and not so fine with some others...The bottoms seem to get
clipped/crowded with certain fonts.
Jerry
-(void)changeFont:(id)sender
{
int i;
NSFont *oldFont = currentFont;
currentFont = [sender convertFont:oldFont];
NSArray *theCols = [self tableColumns];
int colCnt = [self numberOfColumns];
for(i=0; i< colCnt; i++)
{
[[[theCols objectAtIndex:i] dataCell] setFont:currentFont];
}
[self setRowHeight:[currentFont pointSize]+3];
//[self tile];
[self setFont:currentFont];
}
On Jul 16, 2004, at 5:17 AM, Jeremy Dronfield wrote:
Try -[NSTableView setRowHeight:]
Regards,
-Jeremy
On 16 Jul 2004, at 1:51 am, Jerry LeVan wrote:
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.
_______________________________________________
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.