X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f99422e9e916202c36a62534236d2288aae435c7..11fe6505b848a968f4c89cb3c3fd37a6a03bcaea:/src/cocoa/mdi.mm diff --git a/src/cocoa/mdi.mm b/src/cocoa/mdi.mm index 1d069d58b0..63e1bfd0e0 100644 --- a/src/cocoa/mdi.mm +++ b/src/cocoa/mdi.mm @@ -1,18 +1,22 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: cocoa/mdi.mm +// Name: src/cocoa/mdi.mm // Purpose: wxMDIParentFrame, wxMDIChildFrame, wxMDIClientWindow // Author: David Elliott // Modified by: // Created: 2003/09/08 // RCS-ID: $Id$ // Copyright: (c) 2003 David Elliott -// Licence: wxWindows licence +// Licence: wxWidgets licence ///////////////////////////////////////////////////////////////////////////// #include "wx/wxprec.h" + +#if wxUSE_MDI + +#include "wx/mdi.h" + #ifndef WX_PRECOMP #include "wx/log.h" - #include "wx/mdi.h" #endif // WX_PRECOMP // #include "wx/cocoa/autorelease.h" @@ -23,7 +27,7 @@ // #import // #import -#include +#include "wx/listimpl.cpp" WX_DEFINE_LIST(wxCocoaMDIChildFrameList); WX_DECLARE_HASH_MAP(int, wxMDIChildFrame*, wxIntegerHash, wxIntegerEqual, wxIntMDIChildFrameHashMap); @@ -44,7 +48,7 @@ WX_DECLARE_HASH_MAP(int, wxMDIChildFrame*, wxIntegerHash, wxIntegerEqual, wxIntM @implementation wxMDIParentFrameObserver : NSObject - (id)init { - wxFAIL_MSG("[wxMDIParentFrameObserver -init] should never be called!"); + wxFAIL_MSG(wxT("[wxMDIParentFrameObserver -init] should never be called!")); m_mdiParent = NULL; return self; } @@ -158,7 +162,7 @@ wxMenuBar *wxMDIParentFrame::GetAppMenuBar(wxCocoaNSWindow *win) void wxMDIParentFrame::CocoaDelegate_windowDidBecomeKey(void) { - wxLogDebug("wxMDIParentFrame=%p::CocoaDelegate_windowDidBecomeKey",this); + wxLogTrace(wxTRACE_COCOA,wxT("wxMDIParentFrame=%p::CocoaDelegate_windowDidBecomeKey"),this); if(sm_cocoaDeactivateWindow && sm_cocoaDeactivateWindow==m_currentChild) { sm_cocoaDeactivateWindow = NULL; @@ -183,7 +187,7 @@ void wxMDIParentFrame::CocoaDelegate_windowDidBecomeKey(void) void wxMDIParentFrame::CocoaDelegate_windowDidResignKey(void) { - wxLogDebug("wxMDIParentFrame=%p::CocoaDelegate_windowDidResignKey",this); + wxLogTrace(wxTRACE_COCOA,wxT("wxMDIParentFrame=%p::CocoaDelegate_windowDidResignKey"),this); if(m_closed) wxFrame::CocoaDelegate_windowDidResignKey(); else @@ -228,10 +232,10 @@ void wxMDIParentFrame::WindowDidBecomeMain(NSNotification *notification) } if(!hashmap.empty()) { - int windowCount = 0; + NSInteger windowCount = 0; NSCountWindows(&windowCount); wxASSERT(windowCount>0); - int *windowList = new int[windowCount]; + NSInteger *windowList = new NSInteger[windowCount]; NSWindowList(windowCount, windowList); wxIntMDIChildFrameHashMap::iterator iter = hashmap.end(); for(int i=0; i