Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Prefetch cells before display. Like NSCollectionView prefetchDataSource. #18

Open
xjbeta opened this issue Dec 12, 2018 · 1 comment

Comments

@xjbeta
Copy link

xjbeta commented Dec 12, 2018

https://developer.apple.com/documentation/appkit/nscollectionviewprefetching
It's useful for load data like large images.

@WCByrne
Copy link
Member

WCByrne commented Jan 3, 2019

I did explore something like this a while back, using the built in "overdraw" features of NSScrollView, but it wasn't very clean and bogged things down. Thinking on it again though, I wonder if the issue was trying to pre-load the cells and add them to the scroll view. Maybe preparing the cells and holding onto them for future layout passes would be the better option 🤔. But it's not quite that straight forward to determine when to prepare and how long you should hold onto those cells, what if you scroll the other way?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants