• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Animate layout changes in NSCollectionView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: NSTextField "Discard Change"
  • Next by Date: NSTableView
  • Previous by thread: Re: Dynamically change NSCollectionView items based on view width
  • Next by thread: NSTableView
  • Index(es):
    • Date
    • Thread