1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/cocoa/NSButton.h
3 // Purpose: wxCocoaNSButton class
4 // Author: David Elliott
8 // Copyright: (c) 2002-2004 David Elliott
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_COCOA_NSBUTTON_H__
13 #define _WX_COCOA_NSBUTTON_H__
15 #include "wx/hashmap.h"
16 #include "wx/cocoa/ObjcAssociate.h"
17 #include "wx/cocoa/ObjcRef.h"
19 WX_DECLARE_OBJC_HASHMAP(NSButton
);
23 WX_DECLARE_OBJC_INTERFACE_HASHMAP(NSButton
);
25 void AssociateNSButton(WX_NSButton cocoaNSButton
);
26 inline void DisassociateNSButton(WX_NSButton cocoaNSButton
)
29 sm_cocoaHash
.erase(cocoaNSButton
);
32 virtual void Cocoa_wxNSButtonAction(void) = 0;
34 static const wxObjcAutoRefFromAlloc
<struct objc_object
*> sm_cocoaTarget
;
37 #endif // _WX_COCOA_NSBUTTON_H__