Re: Question about hebrew in textfields and textviews
Re: Question about hebrew in textfields and textviews
- Subject: Re: Question about hebrew in textfields and textviews
- From: Lee Ann Rucker <email@hidden>
- Date: Thu, 12 Apr 2012 11:34:20 -0700
On Apr 12, 2012, at 8:12 AM, Kyle Sluder wrote:
> On Apr 12, 2012, at 12:11 AM, Lee Ann Rucker <email@hidden> wrote:
>
>> That's interesting, because the doc disagrees:
>>
>> "Text using NSNaturalTextAlignment is actually displayed using one of the other alignments, depending on the natural alignment of the text’s script."
>
> You're looking at the reference for NSText, not NSTextField.
OK, there's a [NSControl setAlignment:] that NSTextField inherits, and it takes the same values.
>
> As I said, I would probably find it surprising if, in an interface designed for an LTR language, entering RTL text suddenly changed the alignment of my text fields. That could seriously disrupt the readability of a form. (I must note that I don't write in any RTL languages.)
>
> Of course it should respect the writing direction, so the cursor would remain fixed at the left of the text field while typed characters were appended to the left.
>
> For a text view, however, I would definitely want RTL text to be aligned to the right.
>
> I would not be surprised if NSTextFieldCell configures its field editor with left/right alignment based on the UI direction rather than passing on the natural alignment. That might be worth testing.
>
> --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