comparison mac/dw.m @ 2195:8c6f087e7182

Mac: Workaround infinite loop in spinbutton control in Snow Leopard (10.6).
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 25 Oct 2020 21:42:41 +0000
parents e136e65547bf
children f0611d5385f9
comparison
equal deleted inserted replaced
2194:b3989eee8d88 2195:8c6f087e7182
3442 self = [super init]; 3442 self = [super init];
3443 3443
3444 if(self) 3444 if(self)
3445 { 3445 {
3446 textfield = [[[NSTextField alloc] init] autorelease]; 3446 textfield = [[[NSTextField alloc] init] autorelease];
3447 /* Workaround for infinite loop in Snow Leopard 10.6 */
3448 if(DWOSMajor == 10 && DWOSMinor < 7)
3449 [textfield setFrameSize:NSMakeSize(10,10)];
3447 [self addSubview:textfield]; 3450 [self addSubview:textfield];
3448 stepper = [[[DWStepper alloc] init] autorelease]; 3451 stepper = [[[DWStepper alloc] init] autorelease];
3449 [self addSubview:stepper]; 3452 [self addSubview:stepper];
3450 [stepper setParent:self]; 3453 [stepper setParent:self];
3451 [stepper setTextfield:textfield]; 3454 [stepper setTextfield:textfield];