Animate layout changes in NSCollectionView?
Animate layout changes in NSCollectionView?
- Subject: Animate layout changes in NSCollectionView?
- From: Demitri Muna <email@hidden>
- Date: Thu, 11 Apr 2019 18:49:18 -0400
Hi,
I have a 10.11+ NSCollectionView and a custom layout, and I’d like to animate
the items in the collection when the bounds change. This does not involve
inserting or deleting items or changing the layout, just repositioning them
when the view changes size. It’s exactly this question:
https://stackoverflow.com/questions/52091074/how-to-animate-a-relayout-of-nscollectionviewlayout-on-bounds-change
I see the code belongs in
- (void)prepareForAnimatedBoundsChange:(NSRect)oldBounds;
- (void)finalizeAnimatedBoundsChange;
but it’s not clear to me what to put in these methods.
Thanks,
Demitri
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden