Re: Dynamically change NSCollectionView items based on view width

2019-04-06 Thread Richard Charles
Cocoa Programming for Mac OS X Third Edition by Aaron Hillegass, Chapter 29 View Swapping. Cocoa Programming for Mac OS X Fourth Edition by Aaron Hillegass, Chapter 31 View Swapping. Cocoa Programming for Mac OS X Fifth Edition by Aaron Hillegass, Chapter 31 View Swapping and Custom Container

Dynamically change NSCollectionView items based on view width

2019-04-06 Thread Demitri Muna
Hello, I have a 10.11+ NSCollectionView. I have two representations (subclasses of NSCollectionViewItem) of the data - one large and one small. When the view is resized to be narrower than the large representation, I’d like to swap the views to the smaller versions. Similarly, when the window i