]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/cocoa/NSButton.h
Remove no longer used header.
[wxWidgets.git] / include / wx / cocoa / NSButton.h
index a6f9b2f57f7d41933a2ccca4c8597152fad70050..0f027871cfc0694aeadb6e1d4e5e87fd52dedc14 100644 (file)
@@ -6,14 +6,14 @@
 // Created:     2002/12/09
 // RCS-ID:      $Id: 
 // Copyright:   (c) 2002 David Elliott
 // Created:     2002/12/09
 // RCS-ID:      $Id: 
 // Copyright:   (c) 2002 David Elliott
-// Licence:     wxWindows license
+// Licence:     wxWindows licence
 ///////////////////////////////////////////////////////////////////////////////
 
 #ifndef __WX_COCOA_NSBUTTON_H__
 #define __WX_COCOA_NSBUTTON_H__
 
 #include "wx/hashmap.h"
 ///////////////////////////////////////////////////////////////////////////////
 
 #ifndef __WX_COCOA_NSBUTTON_H__
 #define __WX_COCOA_NSBUTTON_H__
 
 #include "wx/hashmap.h"
-#include "wx/cocoa/ObjcPose.h"
+#include "wx/cocoa/ObjcAssociate.h"
 
 WX_DECLARE_OBJC_HASHMAP(NSButton);
 
 
 WX_DECLARE_OBJC_HASHMAP(NSButton);
 
@@ -24,7 +24,8 @@ public:
     void AssociateNSButton(WX_NSButton cocoaNSButton);
     inline void DisassociateNSButton(WX_NSButton cocoaNSButton)
     {
     void AssociateNSButton(WX_NSButton cocoaNSButton);
     inline void DisassociateNSButton(WX_NSButton cocoaNSButton)
     {
-        sm_cocoaHash.erase(cocoaNSButton);
+        if(cocoaNSButton)
+            sm_cocoaHash.erase(cocoaNSButton);
     }
 
 public:
     }
 
 public: