• 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
NSTableView, variable row heights, small fonts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView, variable row heights, small fonts


  • Subject: NSTableView, variable row heights, small fonts
  • From: Ken Victor <email@hidden>
  • Date: Wed, 19 Oct 2005 15:58:27 -0700

i've got an NSTableView that has a single column and each row is an NSAttributedString. in my data source for the table i return the height returned by [NSAttributedString size] as the height for each row. the problem is that if my strings are small font sizes (less than 13), the table appears to clip the bottom of the characters.

if it matters, the table is inside a tab view that is inside a sheet attached to an application window (preferences) in my document based app.

i can avoid the clipping by setting the height for intercell spacing larger, but i'd rather not do this as i'd prefer the view to be wysiwyg as it is for the headers and footers for printed reports. and i haven't figured out what algorithym to use to figure out what size intercell spacing to use.

also, the amount of clipping seems to vary somewhat depending on which font is in use.

i'm not sure what i should be doing differently or where to look for a bug in my code. can anyone offer me any advice? or tell me if perhaps this is a known problem with NSTableView.

thanx,
ken
_______________________________________________
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: NSTableView, variable row heights, small fonts
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: Core Data Binding with NSArrayController: Replace NSArrayController w/in IB breaks the application -- solved.
  • Next by Date: How can a pallete use an NSManagedObject?
  • Previous by thread: Core Data Binding with NSArrayController: Replace NSArrayController w/in IB breaks the application -- solved.
  • Next by thread: Re: NSTableView, variable row heights, small fonts
  • Index(es):
    • Date
    • Thread