X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d841895246c188d722bae08e9f37c7270bc56ea8..11fe6505b848a968f4c89cb3c3fd37a6a03bcaea:/src/cocoa/mdi.mm?ds=sidebyside diff --git a/src/cocoa/mdi.mm b/src/cocoa/mdi.mm index da1375de1e..63e1bfd0e0 100644 --- a/src/cocoa/mdi.mm +++ b/src/cocoa/mdi.mm @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: cocoa/mdi.mm +// Name: src/cocoa/mdi.mm // Purpose: wxMDIParentFrame, wxMDIChildFrame, wxMDIClientWindow // Author: David Elliott // Modified by: @@ -10,9 +10,13 @@ ///////////////////////////////////////////////////////////////////////////// #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" @@ -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