NSCollectionView
NSCollectionView is a macOS user interface component in AppKit that presents a scrollable collection of views, typically arranged in a grid or list. It is the macOS counterpart to UICollectionView and is used to display homogeneous or heterogeneous items in a flexible, reusable way.
Core concepts revolve around a layout object that defines how items are sized and positioned. The collection
Data source and delegate roles mirror other collection-based components. The NSCollectionViewDataSource protocol supplies the number of
Registration and reuse are central to performance. You register item and supplementary view classes or nibs
In practice, NSCollectionView supports selection, drag and drop, and contextual menus, and is a versatile tool