]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/NSControl.mm
check the validity of wxString pointer itself too
[wxWidgets.git] / src / cocoa / NSControl.mm
index 53d42d16971c7c76e05886117240e5c05f620c74..ab10708d20852b8a0855644e2b573b7f7788b869 100644 (file)
@@ -6,7 +6,7 @@
 // Created:     2003/02/15
 // RCS-ID:      $Id: 
 // Copyright:   (c) 2003 David Elliott
-// Licence:     wxWindows license
+// Licence:     wxWidgets licence
 /////////////////////////////////////////////////////////////////////////////
 
 // ============================================================================
@@ -40,9 +40,9 @@
 
 - (void)wxNSControlAction: (id)sender
 {
-    wxLogDebug("wxNSControlAction");
+    wxLogTrace(wxTRACE_COCOA,wxT("wxNSControlAction"));
     wxCocoaNSControl *wxcontrol = wxCocoaNSControl::GetFromCocoa(sender);
-    wxCHECK_RET(wxcontrol,"wxNSControlAction received but no wxCocoaNSControl exists!");
+    wxCHECK_RET(wxcontrol,wxT("wxNSControlAction received but no wxCocoaNSControl exists!"));
     wxcontrol->CocoaTarget_action();
 }