Initializer

init(rect:)

Creates and returns a new NSBezierPath object initialized with a rectangular path.

Declaration

init(rect: NSRect)

Parameters

aRect

The rectangle describing the path to create.

Return Value

A new path object with the rectangular path.

Discussion

The path is constructed by starting at the origin of aRect and adding line segments in a counterclockwise direction.

See Also

Creating an NSBezierPath Object

init(ovalIn: NSRect)

Creates and returns a new NSBezierPath object initialized with an oval path inscribed in the specified rectangle.

init(roundedRect: NSRect, xRadius: CGFloat, yRadius: CGFloat)

Creates and returns a new NSBezierPath object initialized with a rounded rectangular path.

var flattened: NSBezierPath

A flattened version of the path object.

var reversed: NSBezierPath

A path containing the reversed contents of the current path object.