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
Post a Comment