Detect last visible nscollectionview item prototype

一曲冷凌霜 提交于 2019-12-25 06:59:29

问题


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:


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.



来源:https://stackoverflow.com/questions/21795083/detect-last-visible-nscollectionview-item-prototype

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!