Replaces the clipping path of the current graphics context with the area inside the receiver's path.
- macOS 10.0+
You should avoid using this method as a way of adjusting the clipping path, as it may expand the clipping path beyond the bounds set by the enclosing view. If you do use this method, be sure to save the graphics state prior to modifying the clipping path and restore the graphics state when you are done.
This method uses the current winding rule to determine the clipping shape of the receiver. This method does not affect the receiver’s path.