comparison mac/dw.m @ 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
comparison
equal deleted inserted replaced
1770:2396655d43f1 1771:bed4320cb0ce
5316 */ 5316 */
5317 HWND API dw_status_text_new(char *text, ULONG cid) 5317 HWND API dw_status_text_new(char *text, ULONG cid)
5318 { 5318 {
5319 NSTextField *textfield = dw_text_new(text, cid); 5319 NSTextField *textfield = dw_text_new(text, cid);
5320 [textfield setBordered:YES]; 5320 [textfield setBordered:YES];
5321 if(DWOSMinor > 5) 5321 if(DWOSMinor > 5 && DWOSMinor < 8)
5322 { 5322 {
5323 [textfield setBezeled:YES]; 5323 [textfield setBezeled:YES];
5324 [textfield setBezelStyle:NSTextFieldSquareBezel]; 5324 [textfield setBezelStyle:NSTextFieldSquareBezel];
5325 } 5325 }
5326 [textfield setBackgroundColor:[NSColor clearColor]]; 5326 [textfield setBackgroundColor:[NSColor clearColor]];
5327 [textfield setDrawsBackground:NO];
5328 [[textfield cell] setVCenter:YES]; 5327 [[textfield cell] setVCenter:YES];
5329 return textfield; 5328 return textfield;
5330 } 5329 }
5331 5330
5332 /* 5331 /*