• 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: NSTableView fontsize
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView fontsize


  • Subject: Re: NSTableView fontsize
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Sun, 8 Feb 2004 15:35:01 +0100

At 9:01 Uhr -0500 08.02.2004, Koen van der Drift wrote:
- (void)tableView:(NSTableView *)aTableView willDisplayCell:(id)cell forTableColumn:(NSTableColumn *)tableColumn row (int)rowIndex
{
[cell setFont: [NSFont fontWithName: @"Geneva" size:11.0] ];
}

But this doesn't change the font either.

If nobody has any better solutions to offer, you can try returning an NSAttributedString instead of an NSString from your data source. Give the NSAttributedString the attributes you want and the table will use them to draw it.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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.
References: 
 >NSTableView fontsize (From: Koen van der Drift <email@hidden>)

  • Prev by Date: Re: applicationShouldTerminateAfterLastWindowClosed
  • Next by Date: Re: NSTableView fontsize
  • Previous by thread: NSTableView fontsize
  • Next by thread: Re: NSTableView fontsize
  • Index(es):
    • Date
    • Thread