comparison mac/dw.m @ 2156:1337859c1a20

Mac: Fix some version checks that only used the minor version.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 22 Sep 2020 04:19:01 +0000
parents 9c1a64ebb686
children a1bf891d5990
comparison
equal deleted inserted replaced
2155:d953786b2e85 2156:1337859c1a20
4166 DW_LOCAL_POOL_IN; 4166 DW_LOCAL_POOL_IN;
4167 4167
4168 /* Figure out path information... 4168 /* Figure out path information...
4169 * These functions are only support in Snow Leopard and later... 4169 * These functions are only support in Snow Leopard and later...
4170 */ 4170 */
4171 if(defpath && *defpath && DWOSMinor > 5) 4171 if(defpath && *defpath && (DWOSMinor > 5 || DWOSMajor > 10))
4172 { 4172 {
4173 struct stat buf; 4173 struct stat buf;
4174 4174
4175 /* Get an absolute path */ 4175 /* Get an absolute path */
4176 if(!realpath(defpath, temp)) 4176 if(!realpath(defpath, temp))
4639 thiswidth = 150; 4639 thiswidth = 150;
4640 /* Comboboxes need some extra height for the border */ 4640 /* Comboboxes need some extra height for the border */
4641 if([object isMemberOfClass:[ DWComboBox class]]) 4641 if([object isMemberOfClass:[ DWComboBox class]])
4642 extraheight = 4; 4642 extraheight = 4;
4643 /* Yosemite and higher requires even more border space */ 4643 /* Yosemite and higher requires even more border space */
4644 if(DWOSMinor > 9) 4644 if(DWOSMinor > 9 || DWOSMajor > 10)
4645 extraheight += 4; 4645 extraheight += 4;
4646 } 4646 }
4647 else 4647 else
4648 nsstr = [object stringValue]; 4648 nsstr = [object stringValue];
4649 4649