+
+ // Set m_updateRegion
+ const NSRect *rects = ▭ // The bounding box of the region
+ int countRects = 1;
+ // Try replacing the larger rectangle with a list of smaller ones:
+NS_DURING
+ //getRectsBeingDrawn:count: is a optimization that is only available on
+ //Panthar (10.3) and higher. Check to see if it supports it -
+ if ( [GetNSView() respondsToSelector:@selector(getRectsBeingDrawn:count:)] ) objc_msgSend(GetNSView(),@selector(getRectsBeingDrawn:count:),&rects,&countRects);
+NS_HANDLER
+NS_ENDHANDLER
+ m_updateRegion = wxRegion(rects,countRects);
+