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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to