Re: Dynamically change NSCollectionView items based on view width

2019-04-08 Thread Demitri Muna
Pro-tip: when updating a legacy NSCollectionView to a modern implementation and you leave the old one in another view “just in case", update your “collectionView” outlet to point to the new one. Sigh. “Never mind.” — Roseanne Roseannadanna ___ Cocoa

Re: Dynamically change NSCollectionView items based on view width

2019-04-07 Thread Demitri Muna
Hi Mike, On Apr 7, 2019, at 4:20 PM, Mike Abdullah wrote: > The obvious first question to me is: is your notification actually firing? Yes, it fires upon every frame change so I know exactly when the view’s width becomes is less than my threshold. I am observing changes in self.view.superview

Re: Dynamically change NSCollectionView items based on view width

2019-04-07 Thread Mike Abdullah
The obvious first question to me is: is your notification actually firing? Mike. > On 6 Apr 2019, at 22:46, Demitri Muna wrote: > > Hello, > > I have a 10.11+ NSCollectionView. I have two representations (subclasses of > NSCollectionViewItem) of the data - one large and one small. When the vi

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