1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/cocoa/NSSlider.h
3 // Purpose: wxCocoaNSSlider class
4 // Author: Mark Oxenham
5 // Modified by: David Elliott
8 // Copyright: (c) 2007 Software 2000 Ltd. All rights reserved.
9 // Licence: wxWidgets licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WXNSSLIDER_H_
13 #define _WXNSSLIDER_H_
15 #include "wx/hashmap.h"
16 #include "wx/cocoa/ObjcAssociate.h"
17 #include "wx/cocoa/ObjcRef.h"
19 DECLARE_WXCOCOA_OBJC_CLASS(NSSlider
);
21 WX_DECLARE_OBJC_HASHMAP(NSSlider
);
23 // For when we're not in Objective-C mode:
24 typedef struct objc_selector
*SEL
;
26 class wxCocoaNSSliderLastSelectorChanger
;
30 friend class wxCocoaNSSliderLastSelectorChanger
;
31 WX_DECLARE_OBJC_INTERFACE_HASHMAP(NSSlider
);
33 void AssociateNSSlider(WX_NSSlider cocoaNSSlider
);
34 void DisassociateNSSlider(WX_NSSlider cocoaNSSlider
);
36 virtual void CocoaNotification_startTracking(WX_NSNotification notification
) = 0;
37 virtual void CocoaNotification_continueTracking(WX_NSNotification notification
) = 0;
38 virtual void CocoaNotification_stopTracking(WX_NSNotification notification
) = 0;
40 static SEL
GetLastResponderSelector()
41 { return sm_lastResponderSelector
; }
43 virtual ~wxCocoaNSSlider() { }
44 static SEL sm_lastResponderSelector
;