Re: NSTextView editing top-down and right to left.
Re: NSTextView editing top-down and right to left.
- Subject: Re: NSTextView editing top-down and right to left.
- From: Aki Inoue <email@hidden>
- Date: Fri, 2 Jul 2010 17:52:21 -0700
Hello Abhinay,
> I was wondering if its possible to use NSTextView for top-down editing. I could not find a method to set it to top down.
NSTextView currently does not support the vertical text editing.
> this results in a split caret with top half caret at extreme left and bottom half at extreme right and any character typed appears to the right. I want the new character appended to the left.
The Text System is handling bidirectional scripts based on the Unicode Bidi Algorithm.
With the specification, the position of a character is determined by the character's Bidi property.
For example, characters inside right-to-left words always flow to the left, and left-to-right words to the right.
The base writing direction API controls the general text flow direction in the paragraph. It affects the relationships between words, but not characters inside each word.
This is, of course, an over-simplification (there are more to the specification), but you get the idea.
Aki
On 2010/07/02, at 4:44, Abhinay Kartik Reddyreddy wrote:
> Hi,
>
> I was wondering if its possible to use NSTextView for top-down editing. I could not find a method to set it to top down.
>
> Also how do i get the right to left editing working properly....
>
> [myTextView setBaseWritingDirection:NSWritingDirectionRightToLeft];
>
> this results in a split caret with top half caret at extreme left and bottom half at extreme right and any character typed appears to the right. I want the new character appended to the left.
>
> Thanks,
> Abhinay._______________________________________________
>
> 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
_______________________________________________
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