• 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: Font Size Problem in NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Font Size Problem in NSTableView


  • Subject: Re: Font Size Problem in NSTableView
  • From: David Emme <email@hidden>
  • Date: Tue, 2 May 2006 12:28:12 -0700

--- On 5/2/06 12:05 PM (-0700), Greg Herlihy wrote:

>The formula for calculating the font height is incorrect. The font
>height would actually be:
>
>    ascender + descender + leading
>

You would think so, but as it turns out, descender returns a negative
value. so "- descender" produces the desired result.


>You might also have to send a tile message to the table for it to
>adjust to the new row heights.

setRowHeight: is documented to send a tile message itself, and seems to
do so. The row height does change when I expect it to, it just seems
that the baseline is set "wrong".

-Dave
--
Some mornings it just doesn't seem worth it
to gnaw through the leather straps.
    - Emo Phillips
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Font Size Problem in NSTableView
      • From: Greg Herlihy <email@hidden>
References: 
 >Re: Font Size Problem in NSTableView (From: Greg Herlihy <email@hidden>)

  • Prev by Date: Distributed Object Memory Management
  • Next by Date: InstantMessage.framework
  • Previous by thread: Re: Font Size Problem in NSTableView
  • Next by thread: Re: Font Size Problem in NSTableView
  • Index(es):
    • Date
    • Thread