Creates and returns a new graphics context for drawing into a window.
Original signature is '+ (NSGraphicsContext *)graphicsContextWithWindow:(NSWindow *)aWindow'
Available in Mac OS X v10.0 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public static NSGraphicsContext GraphicsContextWithWindow( NSWindow aWindow )
Public Shared Function GraphicsContextWithWindow ( _ aWindow As NSWindow _ ) As NSGraphicsContext
public: static NSGraphicsContext^ GraphicsContextWithWindow( NSWindow^ aWindow )
Parameters
- aWindow (NSWindow)
- 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.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)