• 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: Scott Thompson <email@hidden>
  • Date: Thu, 13 Apr 2006 16:20:22 -0500


On Apr 13, 2006, at 11:33 AM, Ondra Cada wrote:

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?

No, but I can :-) Since I'm much less of a guru... I hadn't "encountered" the line fragment padding yet. :-)


I really appreciate your help.

Scott

_______________________________________________
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


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

  • Prev by Date: Re: NSTextView (NSAttributedString) binding: Is it possible to programmatically change the value source?
  • Next by Date: Re: NSArrayController and programatic add
  • Previous by thread: Re: NSLayoutManager and whitespace
  • Next by thread: Problem with NSTextView
  • Index(es):
    • Date
    • Thread