Instance Property


The angle of rotation, measured in degrees, applied to the view’s frame rectangle relative to its superview’s coordinate system.


@property CGFloat frameRotation;


Positive values indicate counterclockwise rotation. Negative values indicate clockwise rotation. Rotation is performed around the origin of the frame rectangle. Changing the value of this property does not mark the view as needing to be displayed. Set the needsDisplay property to YES when you want the view to be redisplayed.

Changing the frame rotation value results in the posting of an NSViewFrameDidChangeNotification to the default notification center if the view is configured to do so.

See Also

Modifying the Frame Rectangle


The view’s frame rectangle, which defines its position and size in its superview’s coordinate system.

- setFrameOrigin:

Sets the origin of the view’s frame rectangle to the specified point, effectively repositioning it within its superview.

- setFrameSize:

Sets the size of the view’s frame rectangle to the specified dimensions, resizing it within its superview without affecting its coordinate system.