changeset 1771:bed4320cb0ce

Seems the cool looking bezeled look to the text field has changed in Mac 10.8. So for now, only use the bezeled look for 10.6 through 10.7. Also removed a duplicate call to textfield setDrawsBackground:NO].
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 12 Jul 2012 21:18:01 +0000
parents 2396655d43f1
children 5e16351b01d2
files mac/dw.m
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mac/dw.m	Thu Jul 12 20:29:12 2012 +0000
+++ b/mac/dw.m	Thu Jul 12 21:18:01 2012 +0000
@@ -5318,13 +5318,12 @@
 {
     NSTextField *textfield = dw_text_new(text, cid);
     [textfield setBordered:YES];
-    if(DWOSMinor > 5)
+    if(DWOSMinor > 5 && DWOSMinor < 8)
     {
         [textfield setBezeled:YES];
         [textfield setBezelStyle:NSTextFieldSquareBezel];
     }
     [textfield setBackgroundColor:[NSColor clearColor]];
-    [textfield setDrawsBackground:NO];
     [[textfield cell] setVCenter:YES];
     return textfield;
 }