]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/app.mm
fixed debug assert in VC 7.1 CRT due to calling isalnum() with 8bit chars
[wxWidgets.git] / src / cocoa / app.mm
index 909b71fe4fd43317334c61e80cc5b731c19d1939..ee8284346b26cfd5cbc51d4a2ba5cc792e695d70 100644 (file)
@@ -13,8 +13,6 @@
 #ifndef WX_PRECOMP
     #include "wx/defs.h"
     #include "wx/app.h"
-    #include "wx/frame.h"
-    #include "wx/dialog.h"
     #include "wx/dc.h"
     #include "wx/intl.h"
     #include "wx/log.h"
@@ -33,8 +31,6 @@
 
 #import <AppKit/NSApplication.h>
 #import <Foundation/NSRunLoop.h>
-#import <Foundation/NSArray.h>
-#import <Foundation/NSAutoreleasePool.h>
 #import <Foundation/NSThread.h>
 #import <AppKit/NSEvent.h>
 #import <Foundation/NSString.h>
@@ -89,7 +85,7 @@ WX_IMPLEMENT_POSER(wxPoserNSApplication);
         && ([NSDefaultRunLoopMode isEqualToString:mode] || [NSModalPanelRunLoopMode isEqualToString:mode]))
     {
         sg_needIdle = false;
-        wxLogDebug(wxT("Processing idle events"));
+        wxLogTrace(wxTRACE_COCOA,wxT("Processing idle events"));
         while(wxTheApp->ProcessIdle())
         {
             // Get the same events except don't block
@@ -98,19 +94,19 @@ WX_IMPLEMENT_POSER(wxPoserNSApplication);
             if(event)
                 return event;
             // we didn't get one, do some idle work
-            wxLogDebug(wxT("Looping idle events"));
+            wxLogTrace(wxTRACE_COCOA,wxT("Looping idle events"));
         }
         // No more idle work requested, block
-        wxLogDebug(wxT("Finished idle processing"));
+        wxLogTrace(wxTRACE_COCOA,wxT("Finished idle processing"));
     }
     else
-        wxLogDebug(wxT("Avoiding idle processing sg_needIdle=%d"),sg_needIdle);
+        wxLogTrace(wxTRACE_COCOA,wxT("Avoiding idle processing sg_needIdle=%d"),sg_needIdle);
     return [super nextEventMatchingMask:mask untilDate:expiration inMode:mode dequeue:flag];
 }
 
 - (void)sendEvent: (NSEvent*)anEvent
 {
-    wxLogDebug(wxT("SendEvent"));
+    wxLogTrace(wxTRACE_COCOA,wxT("SendEvent"));
     sg_needIdle = true;
     [super sendEvent: anEvent];
 }