]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/NSView.mm
don't use deprecated macros
[wxWidgets.git] / src / cocoa / NSView.mm
index 0238c5c50a0583312f8ac369e219f0bf59802246..ea6965631670e69471d79e4c84300e7cd33f11c7 100644 (file)
@@ -53,11 +53,19 @@ void wxCocoaNSView::DisassociateNSView(WX_NSView cocoaNSView)
 {
 }
 
+- (void)drawRect: (NSRect)rect;
 @end // wxPoserNSView
 
 WX_IMPLEMENT_POSER(wxPoserNSView);
 @implementation wxPoserNSView : NSView
 
+- (void)drawRect: (NSRect)rect
+{
+    wxCocoaNSView *win = wxCocoaNSView::GetFromCocoa(self);
+    if( !win || !win->Cocoa_drawRect(rect) )
+        [super drawRect:rect];
+}
+
 @end // implementation wxPoserNSView
 
 @interface wxNSViewNotificationObserver : NSObject