Type Method

valueWithRect:

Creates a new value object containing the specified Foundation rectangle structure.

Declaration

+ (NSValue *)valueWithRect:(NSRect)rect;

Parameters

rect

The value for the new object.

Return Value

A new value object that contains the data in the rect structure.

See Also

Working with Foundation Geometry Values

+ valueWithPoint:

Creates a new value object containing the specified Foundation point structure.

+ valueWithSize:

Creates a new value object containing the specified Foundation size structure.

pointValue

The Foundation point structure representation of the value.

sizeValue

The Foundation size structure representation of the value.

rectValue

The Foundation rectangle structure representation of the value.