#define __WX_COCOA_NSWINDOW_H__
#include "wx/hashmap.h"
-#include "wx/cocoa/ObjcPose.h"
+#include "wx/cocoa/ObjcAssociate.h"
WX_DECLARE_OBJC_HASHMAP(NSWindow);
void AssociateNSWindow(WX_NSWindow cocoaNSWindow);
inline void DisassociateNSWindow(WX_NSWindow cocoaNSWindow)
{
- sm_cocoaHash.erase(cocoaNSWindow);
+ if(cocoaNSWindow)
+ sm_cocoaHash.erase(cocoaNSWindow);
}
virtual void Cocoa_close(void) = 0;
virtual bool Cocoa_windowShouldClose(void) = 0;