Overridden by subclasses to (re)initialize the view’s graphics state object.
- macOS 10.0–10.10Deprecated
This method is automatically invoked when the graphics state object created using
allocate needs to be initialized. The default implementation does nothing. Your subclass can override it to set the current font, line width, or any other graphics state parameter except coordinate transformations and the clipping path—these are established by the frame and bounds rectangles and by methods such as
translate. Note that
draw can further transform the coordinate system and clipping path for whatever temporary effects it needs.