X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8d60daa8d3d4ff1df00129b679713809f91f6ec5..06a32e049c1bad9249079ad2e91659303424a774:/src/cocoa/app.mm diff --git a/src/cocoa/app.mm b/src/cocoa/app.mm index 80402ff4f9..c353fec89a 100644 --- a/src/cocoa/app.mm +++ b/src/cocoa/app.mm @@ -7,7 +7,7 @@ // RCS-ID: $Id$ // Copyright: (c) David Elliott // Software 2000 Ltd. -// Licence: wxWidgets licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #include "wx/wxprec.h" @@ -116,7 +116,7 @@ bool wxApp::Initialize(int& argc, wxChar **argv) // application (otherwise applications would need to handle it) if ( argc > 1 ) { - static const wxChar *ARG_PSN = _T("-psn_"); + static const wxChar *ARG_PSN = wxT("-psn_"); if ( wxStrncmp(argv[1], ARG_PSN, wxStrlen(ARG_PSN)) == 0 ) { // remove this argument @@ -184,10 +184,6 @@ wxApp::wxApp() { m_topWindow = NULL; -#ifdef __WXDEBUG__ - m_isInAssert = false; -#endif // __WXDEBUG__ - argc = 0; #if !wxUSE_UNICODE argv = NULL; @@ -323,7 +319,7 @@ void wxApp::WakeUpIdle() done without exiting the runloop. Be careful if you decide to change the implementation of this method - as wxEventLoop::Exit depends on the current behavior. + as wxEventLoop::Exit depends on the current behaviour. */ [m_cocoaApp postEvent:[NSEvent otherEventWithType:NSApplicationDefined location:NSZeroPoint modifierFlags:NSAnyEventMask @@ -358,7 +354,7 @@ static int sg_cApplicationWillUpdate = 0; before the run loop waits and send the idle events from there. It also has the desirable effect of only sending the wx idle events when - the event loop is actualy going to block. If the event loop is being + the event loop is actually going to block. If the event loop is being pumped manualy (e.g. like a PeekMessage) then the kCFRunLoopBeforeWaiting observer never fires. Our Yield() method depends on this because sending idle events from within Yield would be bad. @@ -466,15 +462,6 @@ void wxApp::CF_ObserveMainRunLoopBeforeWaiting(CFRunLoopObserverRef observer, in } } -#ifdef __WXDEBUG__ -void wxApp::OnAssert(const wxChar *file, int line, const wxChar* cond, const wxChar *msg) -{ - m_isInAssert = true; - wxAppBase::OnAssert(file, line, cond, msg); - m_isInAssert = false; -} -#endif // __WXDEBUG__ - /* A note about Cocoa's event loops vs. run loops: It's important to understand that Cocoa has a two-level event loop. The