objective c - Set right-to-left orientation for NSButtonCell -


right-to-left (rtl) languages expect checkbox/radiobutton right of text in checkbox/radiobutton groups , text right aligned.

when set right-to-left language (testing internationalized app) of elements in interface respecting setting, checkboxes , radiobuttons still incorrectly aligned.

i tried explicitly set direction calling [cell setuserinterfacelayoutdirection:nsuserinterfacelayoutdirectionrighttoleft] not seem have effect though recommended in mailing list.

building "reverse column order" solution (as recommended nstable here) nsmatrix require more work since use single column nsmatrix nsbuttoncell.

related questions:

what recommended way adapt checkboxes , radiobutton in nsmatrix:es rtl languages?

the solution manually set "image" position , text alignment.

[cell setimageposition:nsimageright]; [cell setalignment:nsrighttextalignment]; 

Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -