Contents

expandItem(_:expandChildren:)

Expands a specified item and, optionally, its children.

Declaration

func expandItem(_ item: Any?, expandChildren: Bool)

Parameters

  • item:

    An item in the receiver.

    Starting in OS X version 10.5, passing 'nil' will expand each item under the root in the outline view.

  • expandChildren:

    If True, recursively expands item and its children. If False, expands item only (identical to Expanditem(_:)).

Discussion

For example, this method is invoked with the expandChildren parameter set to true when a user Option-clicks the disclosure triangle for an item in the outline view (to expand the item and all its contained items).

For each item expanded, posts an item expanded notification.

See Also

Expanding and Collapsing the Outline