1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/cocoa/NSButton.h
3 // Purpose: wxCocoaNSButton class
4 // Author: David Elliott
7 // Copyright: (c) 2002-2004 David Elliott
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_COCOA_NSBUTTON_H__
12 #define _WX_COCOA_NSBUTTON_H__
14 #include "wx/hashmap.h"
15 #include "wx/cocoa/ObjcAssociate.h"
16 #include "wx/cocoa/ObjcRef.h"
18 WX_DECLARE_OBJC_HASHMAP(NSButton
);
22 WX_DECLARE_OBJC_INTERFACE_HASHMAP(NSButton
);
24 void AssociateNSButton(WX_NSButton cocoaNSButton
);
25 void DisassociateNSButton(WX_NSButton cocoaNSButton
)
28 sm_cocoaHash
.erase(cocoaNSButton
);
31 virtual void Cocoa_wxNSButtonAction(void) = 0;
32 virtual ~wxCocoaNSButton() { }
35 static const wxObjcAutoRefFromAlloc
<struct objc_object
*> sm_cocoaTarget
;
38 #endif // _WX_COCOA_NSBUTTON_H__