Really fixed Mac OS X text box borders this time =P

This commit is contained in:
Pietro Gagliardi 2014-08-10 14:15:59 -04:00
parent 01136cbd86
commit 4e46975906
1 changed files with 2 additions and 1 deletions

View File

@ -103,9 +103,10 @@ static id finishNewTextField(NSTextField *t, BOOL bordered)
// same for text fields, password fields, and labels // same for text fields, password fields, and labels
setStandardControlFont((id) t); setStandardControlFont((id) t);
// these three are the same across text fields, password fields, and labels; the only difference is the setBezeled: value, and it's only different on labels // these three are the same across text fields, password fields, and labels; the only difference is the setBezeled: value, and it's only different on labels
// THE ORDER OF THESE CALLS IS IMPORTANT; CHANGE IT AND THE BORDERS WILL DISAPPEAR
[t setBordered:NO];
[t setBezelStyle:NSTextFieldSquareBezel]; [t setBezelStyle:NSTextFieldSquareBezel];
[t setBezeled:bordered]; [t setBezeled:bordered];
[t setBordered:NO];
// smart quotes and other autocorrect features are handled by the window; see newWindow() in window_darwin.m for details // smart quotes and other autocorrect features are handled by the window; see newWindow() in window_darwin.m for details
// Interface Builder does this to make the text box behave properly // Interface Builder does this to make the text box behave properly
// this disables both word wrap AND ellipsizing in one fell swoop // this disables both word wrap AND ellipsizing in one fell swoop