diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-10 13:55:46 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-10 13:55:46 -0400 |
| commit | 01136cbd868eac32d39ab45393dbaa0eb3b85966 (patch) | |
| tree | 8194df1e279af04456584d4b3ac45833d40700b7 | |
| parent | 65db139be73ac03b4e7f2d0638727a4ff0e68005 (diff) | |
Fixed text field/label bordering on Mac OS X.
| -rw-r--r-- | redo/basicctrls_darwin.m | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/redo/basicctrls_darwin.m b/redo/basicctrls_darwin.m index c4395c6..4802f91 100644 --- a/redo/basicctrls_darwin.m +++ b/redo/basicctrls_darwin.m @@ -102,9 +102,10 @@ static id finishNewTextField(NSTextField *t, BOOL bordered) { // same for text fields, password fields, and labels setStandardControlFont((id) t); - // TODO text field/password field border (Interface Builder setting is confusing) - if (!bordered) - [t setBordered:NO]; + // 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 + [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 |
