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.