changeset 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 b3989eee8d88
children f0611d5385f9
files mac/dw.m
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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];