Type Method

bezierPathWithRect:

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

Declaration

+ (NSBezierPath *)bezierPathWithRect:(NSRect)rect;

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

+ bezierPath

Creates and returns a new NSBezierPath object.

+ bezierPathWithOvalInRect:

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

+ bezierPathWithRoundedRect:xRadius:yRadius:

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

bezierPathByFlatteningPath

A flattened version of the path object.

bezierPathByReversingPath

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