Re: Confusion about NSWritingDirectionNatural
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