I use NSCollectionView with OS X 10.11 Flow layout to display a varying amount of content.
If too many items are displayed, the default scroll bar is displayed according to the Scroll Direction property.
In my case, I would like to dynamically change the height of the NSCollectionView so that it becomes more and more with the addition of more elements.
If I just drag the collection view from the Border Scroll View and Clip View, the content does not appear at all. It is also not possible to set an AutoLayout constraint to associate the height of the Bordered Scroll View with the height of the NSCollectionView. So there must be another solution for this.
source
share