• 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: NSLayoutManager and whitespace
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSLayoutManager and whitespace


  • Subject: Re: NSLayoutManager and whitespace
  • From: Ondra Cada <email@hidden>
  • Date: Thu, 13 Apr 2006 18:33:19 +0200

Scott,

On 13.4.2006, at 17:31, Scott Thompson wrote:

I layout the text on one long line and use that to find the longest word (In this case 67) I then use that as the text container size. I guess this value is too exact. I imagine that the paragraph style or some other aspect of the text string means that the exact width I've calculated is still too narrow.

By no means I am a text system guru, so take this all with a ton of salt, but I guess your problem *might* lay in the default line fragment padding, which is nonzero. Have you tried to send setLineFragmentPadding:0 to your text container?
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc



_______________________________________________ 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: NSLayoutManager and whitespace
      • From: Scott Thompson <email@hidden>
References: 
 >NSLayoutManager and whitespace (From: Scott Thompson <email@hidden>)
 >Re: NSLayoutManager and whitespace (From: Ondra Cada <email@hidden>)
 >Re: NSLayoutManager and whitespace (From: Scott Thompson <email@hidden>)
 >Re: NSLayoutManager and whitespace (From: Scott Thompson <email@hidden>)

  • Prev by Date: Table data quick key access
  • Next by Date: Re: Help with NSOutlineView selection
  • Previous by thread: Re: NSLayoutManager and whitespace
  • Next by thread: Re: NSLayoutManager and whitespace
  • Index(es):
    • Date
    • Thread