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

Re: Cell Size Problem


  • Subject: Re: Cell Size Problem
  • From: Karl Goiser <email@hidden>
  • Date: Sat, 20 Dec 2003 07:39:20 +1100

Thank you for that!


On 20/12/2003, at 7:27 AM, Douglas Davidson wrote:


On Dec 19, 2003, at 10:13 AM, Karl Goiser wrote:

This seems to work fine - except - that if I take something that would wrap to 2 lines in the above way, there is about a 5 pixel width where the above code says that there should be 2 lines, but when drawing it, it only draws on 1 line leaving a whole line empty:

Probably because NSCell drawing uses a lineFragmentPadding of 2 (or 4 for centered cells) where string drawing uses 0.

Douglas Davidson
_______________________________________________
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: 
 >Cell Size Problem (From: Karl Goiser <email@hidden>)
 >Re: Cell Size Problem (From: Douglas Davidson <email@hidden>)

  • Prev by Date: IB: can't connect outlet
  • Next by Date: Re: Bug when encoding subclasses of NSData?
  • Previous by thread: Re: Cell Size Problem
  • Next by thread: Re: NSTextField/View contextual menu also selects
  • Index(es):
    • Date
    • Thread