#include "wx/wxprec.h"
-#include <Cocoa/Cocoa.h>
+#ifndef WX_PRECOMP
+#include "wx/nonownedwnd.h"
+#endif
#ifdef __WXMAC__
#include "wx/osx/private.h"
wxRegion updateRgn;
const NSRect *rects;
- int count ;
+ NSInteger count;
[self getRectsBeingDrawn:&rects count:&count];
for ( int i = 0 ; i < count ; ++i )