invalidationContext(forPreferredLayoutAttributes:withOriginalAttributes:) isn't called on a custom NSCollectionViewLayout subclass
Link to the relevant sample project Description I’m trying to create a custom NSCollectionViewLayout subclass that uses use Auto Layout to determine its items’ sizes. This layout positions items from top-to-bottom, where all items share the same width, but each item's height is deretmined by its content. Think of it as a UITableView layout for… Show more
I've been running into a similar problem. The documentation on -preferredLayoutAttributesFittingAttributes: states "In OS X 10.11, this method is never called." Perhaps that continues to be true in macOS 10.14? Perhaps Apple started to bring the API over, ran out of time, and hasn't prioritized finishing it up? If so, that's a shame.