Instance Method

removeView:

Removes a specified view from the stack view.

Declaration

- (void)removeView:(NSView *)view;

Parameters

aView

The view you want to remove from the stack view.

Discussion

This method removes a view from a stack view whether the view is attached or detached. For an attached view only, you can alternatively call the removeFromSuperview method on the view.

See Also

Managing Views in Gravity Areas

- addView:inGravity:

Adds a view to the end of the stack view gravity area.

- insertView:atIndex:inGravity:

Adds a view to a stack view gravity area at a specified index position.

- setViews:inGravity:

Specifies an array of views for a specified gravity area in the stack view, replacing any previous views in that area.

NSStackViewGravity

The gravity areas available in a stack view.