Thanks for the feedback. In general, I've found that while the controls do,
indeed, seem to align the text correctly for input in bidi locales, there is
little support in things like IB for putting the label on a box at the top
right instead of the top-left, and also in code for determining what
It looks like I'll just have to use other controls to do the same effect in
IB, and just check of locale.name == ar || he in code to do the reverse
drawing.
On 10.6 your heuristic should instead mirror the value of the new
-userInterfaceLayoutDirection accessor in NSApplication (and NSCell).
On Aug 31, 2009, at 8:51 AM, Marc Wandschneider marc...@chipmunkninja.com
wrote:
Thanks for the feedback. In general, I've found that while the
controls do,
indeed, seem to align the text correctly for input in bidi locales,
there is
little support in things like IB for putting the label
Hello!
I recently received an Arabic translation for my application JustLooking,
and have started looking at how to integrate the strings I was given.
Unfortunately, I'm not finding much documentation or visual indications in
apps like Interface Builder on how to enable RTL support.
NSCell, NSControl, NSText, NSParagraphStyle etc all have
baseWritingDirection getters and setters which may be of some help...I
believe the writing direction is determined on a paragraph by
paragraph basis, but unless explicitly set uses the Unicode Bidi
Algorithm rules P2 and P3.
In