Drawing

Draw shapes, images, and other content on the screen.

Topics

Drawing Contexts

NSGraphicsContext

An object that represents a graphics context.

Shapes and Paths

NSBezierPath

An object that can create paths using PostScript-style commands.

Convenience Functions

Draw rectangles and other primitive shapes using these convenience functions.

Strings

NSStringDrawingContext

An object that manages metrics used when drawing attributed strings.

NSStringDrawingOptions

Constants for the rendering options for a string when it is drawn.

Gradients

NSGradient

An object that can draw gradient fill colors

Shadows

NSShadow

An encapsulation of the attributes used to create a drop shadow during drawing operations.

OpenGL

NSOpenGLContext

An object that represents an OpenGL graphics context, into which all OpenGL calls are rendered.

Deprecated
NSOpenGLLayer

A subclass of CAOpenGLLayer that is suitable for rendering OpenGL into layers.

Deprecated
NSOpenGLPixelBuffer

An object that provides access to accelerated offscreen rendering.

Deprecated
NSOpenGLPixelFormat

An object that specifies the types of buffers and other attributes of the NSOpenGLContext.

Deprecated
NSOpenGLGlobalOption

These constants are option names for NSOpenGLSetOption and NSOpenGLGetOption.

Deprecated
NSOpenGLGetOption

Returns global OpenGL options.

Deprecated
NSOpenGLGetVersion

Returns the NSOpenGL version numbers.

Deprecated
NSOpenGLSetOption

Sets global OpenGL options.

Deprecated

See Also

Graphics, Drawing, Color, and Printing

Images and PDF

Create and manage images, in bitmap, PDF, and other formats.

Color

Represent colors using built-in or custom formats, and give users options for selecting and applying colors.

Printing

Display the system print panels and manage the printing process.