+
+ ~wxSpinButtonCocoaImpl()
+ {
+ }
+
+ virtual void controlAction(WXWidget slf, void* _cmd, void *sender);
+ virtual void mouseEvent(WX_NSEvent event, WXWidget slf, void* _cmd);
+private:
+ int m_formerValue;
+};
+
+void wxSpinButtonCocoaImpl::mouseEvent(WX_NSEvent event, WXWidget slf, void *_cmd)
+{
+
+ // send a release event in case we've been tracking the thumb
+ if ( strcmp( sel_getName((SEL) _cmd) , "mouseDown:") == 0 )
+ {
+ m_formerValue = [(NSStepper*)m_osxView intValue];
+ }
+
+ wxWidgetCocoaImpl::mouseEvent(event, slf, _cmd);