• 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: Confusion about NSWritingDirectionNatural
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Confusion about NSWritingDirectionNatural


  • Subject: Re: Confusion about NSWritingDirectionNatural
  • From: Kyle Sluder <email@hidden>
  • Date: Thu, 26 Sep 2013 18:12:49 -0700

On Thu, Sep 26, 2013, at 04:14 PM, Shane Stanley wrote:
>
> The text and the paragraph are different things.

Allow me to be more specific.

According to my understanding of the docs, NSTextView should lay out
text identically in both of these situations:

- Text in the range (0, textStorage.length) has a value of
NSWritingDirectionNatural for the NSWritingDirectionAttributeName
attribute, and a value of NSWritingDirectionRightToLeft for the
baseWritingDirection property of the paragraph style in the
NSParagraphStyleAttributeName.
- Text in the range (0, textStorage.length) has a value of
NSWritingDirectionNatural for both the NSWritingDirectionAttributeName
attribute and for the baseWritingDirection property of the paragraph
style, and the first character in the text storage is a hard-RTL
character.

I have not yet verified that the menu items in TextEdit are producing
the exact circumstances I describe above, but it's certainly confusing
to see a ruler that's right-aligned and text that's not.

--Kyle Sluder
_______________________________________________

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: Confusion about NSWritingDirectionNatural
      • From: Shane Stanley <email@hidden>
References: 
 >Confusion about NSWritingDirectionNatural (From: Kyle Sluder <email@hidden>)
 >Re: Confusion about NSWritingDirectionNatural (From: Shane Stanley <email@hidden>)
 >Re: Confusion about NSWritingDirectionNatural (From: Kyle Sluder <email@hidden>)
 >Re: Confusion about NSWritingDirectionNatural (From: Shane Stanley <email@hidden>)

  • Prev by Date: NSView, Animator, and Autoresizing
  • Next by Date: Re: Confusion about NSWritingDirectionNatural
  • Previous by thread: Re: Confusion about NSWritingDirectionNatural
  • Next by thread: Re: Confusion about NSWritingDirectionNatural
  • Index(es):
    • Date
    • Thread