• 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
setTailIndent problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

setTailIndent problems


  • Subject: setTailIndent problems
  • From: "Fabry, Geza" <email@hidden>
  • Date: Mon, 11 Jan 2010 21:31:52 +0100
  • Acceptlanguage: en-US
  • Thread-topic: setTailIndent problems

Hi,

I try to set tailIndent for an NSMutableParagraphStyle attribute of an NSMutableAttributedString. The documentation says:
   "If positive, this is the distance from the leading margin (for example, the left margin in left-to-right text). That is, it's the absolute line width. If 0 or negative, it's the distance from the trailing margin-the value is added to the line width."
I found however that both positive and negative values are measured from the right margin, positive values make the text narrower, negative values make it wider. (The same seems to be true for kCTParagraphStyleSpecifierTailIndent in CoreText).
Is it a bug in the documentation, in functionality or in my code?
Thanks,
Geza
_______________________________________________

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

  • Follow-Ups:
    • Re: setTailIndent problems
      • From: Ross Carter <email@hidden>
  • Prev by Date: Re: Open new document from within another document.
  • Next by Date: Re: Open new document from within another document.
  • Previous by thread: Re: receiving events
  • Next by thread: Re: setTailIndent problems
  • Index(es):
    • Date
    • Thread