-NS_DURING
- // This only works on Panther
-// [GetNSView() getRectsBeingDrawn:&rects count:&countRects];
- // This compiles everywhere (and still only works on Panther)
- objc_msgSend(GetNSView(),@selector(getRectsBeingDrawn:count:),&rects,&countRects);
-NS_HANDLER
-NS_ENDHANDLER
+ if ([GetNSView() respondsToSelector:@selector(getRectsBeingDrawn:count:)])
+ [GetNSView() getRectsBeingDrawn:&rects count:&countRects];