]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/NSButton.mm
Added dummy resources for wxCocoa so bundles will build
[wxWidgets.git] / src / cocoa / NSButton.mm
index c228460dd41cfc59d51363bfa39d7536105574a6..b9923b7f7fa067191bad9a6ae1f363d90e323232 100644 (file)
@@ -57,8 +57,11 @@ WX_IMPLEMENT_POSER(wxPoserNSButton);
 
 void wxCocoaNSButton::AssociateNSButton(WX_NSButton cocoaNSButton)
 {
-    sm_cocoaHash.insert(wxCocoaNSButtonHash::value_type(cocoaNSButton,this));
-    [cocoaNSButton setTarget: cocoaNSButton];
-    [cocoaNSButton setAction: @selector(wxNSButtonAction:)];
+    if(cocoaNSButton)
+    {
+        sm_cocoaHash.insert(wxCocoaNSButtonHash::value_type(cocoaNSButton,this));
+        [cocoaNSButton setTarget: cocoaNSButton];
+        [cocoaNSButton setAction: @selector(wxNSButtonAction:)];
+    }
 }