0
votes

How is it possible to detect in NSCollectionView when the last item is visible on scrolling ?

I was looking for a similar solution as this but NSCollectionView doesnt have a similar layout methods.

Any hints ?

1
Can't you use the scroll view to do that? - Volker
@Volker How can I do that ? - user88975
@Volker I am already using that for NSTableView but NSScrollView has only one notification boundsDidChange which alone is not enough to check if it has reached the end. Atleast I am not able to figure it out ... - user88975
But you can check the bounds and determine whee the document view got scrolled to?! - Volker

1 Answers

1
votes

It is possible to get noted when the scroll view has scrolled by registering for boundsDidChange notification of the document view as described here Callbacks When an NSScrollView is Scrolled? .

That way one can check which part of the content of the collection view is displayed.