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

Constants

NSStackViewVisibilityPriorityMustHold

The default value, and maximum Auto Layout priority, which 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, which forces a view to detach from the stack view.