Mercurial > dwindows
diff mac/dw.m @ 1027:cbac281970a9
Added support for dw_window_get_text() on spinbutton controls on the Mac.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sat, 21 May 2011 06:09:48 +0000 |
parents | f15dc5226c35 |
children | 7ea8a428e0cc |
line wrap: on
line diff
--- a/mac/dw.m Fri May 20 00:07:35 2011 +0000 +++ b/mac/dw.m Sat May 21 06:09:48 2011 +0000 @@ -7344,6 +7344,11 @@ { NSObject *object = handle; + if([object isMemberOfClass:[ DWSpinButton class]]) + { + DWSpinButton *spinbutton = handle; + handle = object = [spinbutton textfield]; + } if([ object isKindOfClass:[ NSWindow class ] ] || [ object isKindOfClass:[ NSButton class ] ]) { id window = handle; @@ -7373,6 +7378,11 @@ DW_MUTEX_LOCK; NSObject *object = handle; + if([object isMemberOfClass:[ DWSpinButton class]]) + { + DWSpinButton *spinbutton = handle; + handle = object = [spinbutton textfield]; + } if([ object isKindOfClass:[ NSWindow class ] ] || [ object isKindOfClass:[ NSButton class ] ]) { id window = handle;