Type Alias

NSStackViewVisibilityPriority

The various Auto Layout priorities for a view in the stack view to remain attached.

Declaration

typedef float NSStackViewVisibilityPriority;

Discussion

For an explanation of how visibility priority interacts with clipping resistance to determine the detachment behavior of a stack view’s views, see the discussions for the setClippingResistancePriority:forOrientation: and setVisibilityPriority:forView: methods.

A view in a detached state is not present in the stack view’s view hierarchy, but it still consumes memory.

Topics

Priorities

NSStackViewVisibilityPriorityMustHold

The default value, and maximum Auto Layout priority, that results in a view never detaching from the stack view.

NSStackViewVisibilityPriorityDetachOnlyIfNecessary

The Auto Layout priority that results in detachment of a view when there is insufficient space in the stack view to display it fully.

NSStackViewVisibilityPriorityNotVisible

The minimum Auto Layout priority that forces a view to detach from the stack view.

NSStackViewVisibilityPriorityMustHold

The default value, and maximum Auto Layout priority, that results in a view never detaching from the stack view.

NSStackViewVisibilityPriorityDetachOnlyIfNecessary

The Auto Layout priority that results in detachment of a view when there is insufficient space in the stack view to display it fully.

NSStackViewVisibilityPriorityNotVisible

The minimum Auto Layout priority that forces a view to detach from the stack view.

See Also

Configuring Views in a Stack View

- customSpacingAfterView:

Returns the custom spacing, in points, between a specified view in the stack view and the view that follows it.

- setCustomSpacing:afterView:

Specifies the custom spacing, in points, between a specified view and the view that follows it in the stack view.

- visibilityPriorityForView:

Returns the visibility priority for a specified view in the stack view.

- setVisibilityPriority:forView:

Sets the Auto Layout priority for a view to remain attached to the stack view when Auto Layout reduces the stack view’s size.

NSStackViewSpacingUseDefault

The flag to specify default spacing following each view in the stack view.