Returns a bitmap-representation object suitable for caching the specified portion of the view.
- macOS 10.4+
A rectangle defining the area of the view to be cached.
NSBitmap object or
nil if the object could not be created.
Passing the visible rectangle of the view (
[self visible) returns a bitmap suitable for caching the current contents of the view, including all of its descendants.