#define __WX_COCOA_NSBUTTON_H__
#include "wx/hashmap.h"
-#include "wx/cocoa/ObjcPose.h"
+#include "wx/cocoa/ObjcAssociate.h"
WX_DECLARE_OBJC_HASHMAP(NSButton);
void AssociateNSButton(WX_NSButton cocoaNSButton);
inline void DisassociateNSButton(WX_NSButton cocoaNSButton)
{
- sm_cocoaHash.erase(cocoaNSButton);
+ if(cocoaNSButton)
+ sm_cocoaHash.erase(cocoaNSButton);
}
public: