Instance Method

toggleSectionCollapse:

Collapses the section in which the sender resides into a single horizontally scrollable row.

Declaration

- (IBAction)toggleSectionCollapse:(id)sender;

Parameters

sender

The object that requested the action.

Discussion

The icon view in Finder offers this type of collapsible section behavior when users choose the Show Less and Show More buttons. To enable this behavior, your header view must conform to the NSCollectionViewSectionHeaderView protocol, because the collection view uses the sectionCollapseButton property to identify the button that controls the collapse action.

See Also

Inserting, Moving, Deleting, and Collapsing Sections

- insertSections:

Inserts new sections at the specified indexes.

- moveSection:toSection:

Moves a section from its current location to a new location.

- deleteSections:

Deletes the specified sections and their contained items.