Detecting the last visible prototype of an nscollectionview element

How can I detect in an NSCollectionView when the last item is visible when scrolling?

I was looking for a similar solution, but NSCollectionView does not have similar layout methods.

Any clues?

0
source share
1 answer

You can see when the scrolling is viewed by registering a notification about viewing the document for boundsDidChange , as described here. Callbacks When does NSScrollView scroll? .

This way you can check how much of the content of the collection view is displayed.

+1
source

Source: https://habr.com/ru/post/1487471/


All Articles