init(window:)
Creates a new graphics context for drawing into a window.
Declaration
init(window: NSWindow)Parameters
- window:
The window object representing the window to use for drawing.
Return Value
The created NSGraphicsContext object, or nil if the object could not be created.