diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-10 14:15:59 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-10 14:15:59 -0400 |
| commit | 4e469759067fdbb0eb9d7c4c81c9f434fb36c918 (patch) | |
| tree | 17ea72e569ded0e84d5c5018fa89aa5c1c70fb01 | |
| parent | 01136cbd868eac32d39ab45393dbaa0eb3b85966 (diff) | |
Really fixed Mac OS X text box borders this time =P
| -rw-r--r-- | redo/basicctrls_darwin.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/redo/basicctrls_darwin.m b/redo/basicctrls_darwin.m index 4802f91..ed7ec10 100644 --- a/redo/basicctrls_darwin.m +++ b/redo/basicctrls_darwin.m @@ -103,9 +103,10 @@ static id finishNewTextField(NSTextField *t, BOOL bordered) // same for text fields, password fields, and labels 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 + // THE ORDER OF THESE CALLS IS IMPORTANT; CHANGE IT AND THE BORDERS WILL DISAPPEAR + [t setBordered:NO]; [t setBezelStyle:NSTextFieldSquareBezel]; [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 // Interface Builder does this to make the text box behave properly // this disables both word wrap AND ellipsizing in one fell swoop |
