1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/cocoa/NSSlider.h
3 // Purpose: wxCocoaNSSlider class
4 // Author: Mark Oxenham
5 // Modified by: David Elliott
7 // Copyright: (c) 2007 Software 2000 Ltd. All rights reserved.
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WXNSSLIDER_H_
12 #define _WXNSSLIDER_H_
14 #include "wx/hashmap.h"
15 #include "wx/cocoa/ObjcAssociate.h"
16 #include "wx/cocoa/ObjcRef.h"
18 DECLARE_WXCOCOA_OBJC_CLASS(NSSlider
);
20 WX_DECLARE_OBJC_HASHMAP(NSSlider
);
22 // For when we're not in Objective-C mode:
23 typedef struct objc_selector
*SEL
;
25 class wxCocoaNSSliderLastSelectorChanger
;
29 friend class wxCocoaNSSliderLastSelectorChanger
;
30 WX_DECLARE_OBJC_INTERFACE_HASHMAP(NSSlider
);
32 void AssociateNSSlider(WX_NSSlider cocoaNSSlider
);
33 void DisassociateNSSlider(WX_NSSlider cocoaNSSlider
);
35 virtual void CocoaNotification_startTracking(WX_NSNotification notification
) = 0;
36 virtual void CocoaNotification_continueTracking(WX_NSNotification notification
) = 0;
37 virtual void CocoaNotification_stopTracking(WX_NSNotification notification
) = 0;
39 static SEL
GetLastResponderSelector()
40 { return sm_lastResponderSelector
; }
42 virtual ~wxCocoaNSSlider() { }
43 static SEL sm_lastResponderSelector
;