+void wxWindowDC::Clear()
+{
+ wxASSERT(m_window);
+
+ NSGraphicsContext *context = [NSGraphicsContext currentContext];
+ [context saveGraphicsState];
+
+ [m_backgroundBrush.GetNSColor() set];
+ [NSBezierPath fillRect:[m_window->GetNSView() bounds]];
+
+ [context restoreGraphicsState];
+}
+