Re: Resize NSCollectionView items after resize

2016-10-21 Thread Steve Mills
On Oct 21, 2016, at 09:16 AM, Laurent Daudelin wrote: Sorry I misunderstood your question. What about windowDidResize from NSWindowDelegate? I went with NSViewFrameDidChangeNotification on the enclosingScrollView, since it's enclosed in a splitter, so just getting window resizes isn't enough.

Re: Resize NSCollectionView items after resize

2016-10-21 Thread Laurent Daudelin
Sorry I misunderstood your question. What about windowDidResize from NSWindowDelegate? -Laurent. -- Laurent Daudelin laur...@nemesys-soft.com AIM/iChat/Skype:LaurentDaudelin

Re: Resize NSCollectionView items after resize

2016-10-20 Thread Steve Mills
On Oct 20, 2016, at 17:26:47, Laurent Daudelin wrote: > > I used a UICollectionView in an iPad app. But the NSCollectionView is very > similar. The only difference I can tell is that, when you drag a collection > view onto your view controller view, you get contentArray layout type. But, > if

Re: Resize NSCollectionView items after resize

2016-10-20 Thread Laurent Daudelin
I used a UICollectionView in an iPad app. But the NSCollectionView is very similar. The only difference I can tell is that, when you drag a collection view onto your view controller view, you get contentArray layout type. But, if you switch to “Flow”, you will automatically get a collection view

Resize NSCollectionView items after resize

2016-10-20 Thread Steve Mills
I have an NSCollectionView whose items' size are dependent on a zoom slider, with the largest zoom fitting 1 item within the width or height of the enclosingScrollView. What's the best way to cause the items to resize as a result of the NSCollectionView being resized (caused by window resize, e