# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1603662161 0 # Node ID 8c6f087e71829a2e35948435a86c7297ff5f4d41 # Parent b3989eee8d88c657b96fef52bfe749d4f2290640 Mac: Workaround infinite loop in spinbutton control in Snow Leopard (10.6). diff -r b3989eee8d88 -r 8c6f087e7182 mac/dw.m --- a/mac/dw.m Thu Oct 22 21:15:58 2020 +0000 +++ b/mac/dw.m Sun Oct 25 21:42:41 2020 +0000 @@ -3444,6 +3444,9 @@ if(self) { textfield = [[[NSTextField alloc] init] autorelease]; + /* Workaround for infinite loop in Snow Leopard 10.6 */ + if(DWOSMajor == 10 && DWOSMinor < 7) + [textfield setFrameSize:NSMakeSize(10,10)]; [self addSubview:textfield]; stepper = [[[DWStepper alloc] init] autorelease]; [self addSubview:stepper];