• 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: Height and location of text within a line in NSLayoutManager ignoring spacing?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Height and location of text within a line in NSLayoutManager ignoring spacing?


  • Subject: Re: Height and location of text within a line in NSLayoutManager ignoring spacing?
  • From: Douglas Davidson <email@hidden>
  • Date: Mon, 18 Feb 2008 12:53:38 -0800


On Feb 18, 2008, at 11:53 AM, Keith Blount wrote:

Many thanks for your reply, much appreciated. The trouble is that I don't just need the measurements of the text that is laid out in the text container, but also of the arbitrary control string that I am going to draw behind the text, using NSString's - drawWithAttributes:. Would I have to set up a separate layout manager to calculate all of the measurements for the control glyphs? (I suppose I could cache that information given that the control glyph attributes and thus sizes won't change.)

That sounds like a reasonable plan, if it really is an arbitrary text string. Another option might be to use drawWithRect:options:attributes:, which can do baseline-relative drawing.


Douglas Davidson

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: Height and location of text within a line in NSLayoutManager ignoring spacing? (From: Keith Blount <email@hidden>)

  • Prev by Date: Re: Image sources for the standard images such as NSImageNameQuickLookTemplate
  • Next by Date: Automatically updating view inside NSScrollView
  • Previous by thread: Re: Height and location of text within a line in NSLayoutManager ignoring spacing?
  • Next by thread: Re: Height and location of text within a line in NSLayoutManager ignoring spacing?
  • Index(es):
    • Date
    • Thread