• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Changing Cell Size in a TableView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Changing Cell Size in a TableView?
      • From: j o a r <email@hidden>
  • Prev by Date: Forwarding keyDown and keyUp
  • Next by Date: WebView Background Color ?
  • Previous by thread: Forwarding keyDown and keyUp
  • Next by thread: Re: Changing Cell Size in a TableView?
  • Index(es):
    • Date
    • Thread