Re: Yosemite NSCollectionView appropriate for spreadsheet-like view?
Re: Yosemite NSCollectionView appropriate for spreadsheet-like view?
- Subject: Re: Yosemite NSCollectionView appropriate for spreadsheet-like view?
- From: Jens Alfke <email@hidden>
- Date: Tue, 03 May 2016 12:23:09 -0700
> On May 3, 2016, at 12:08 PM, email@hidden wrote:
>
> I should have been more specific - my understanding was that NSCollectionView from 10.11 onward did not do this... which Alex Kac just beat me to mentioning! I was curious if anyone was aware of limitations of this scope with that caveat.
I dunno — I have a Mac app using NSCollectionView, and before I sent my post, I experimentally added some logging to the -init method of the NSView subclass that draws the cells. I opened a window with a few hundred items (about four or five screenfuls) and saw that all of the views got initialized at the moment the window opened.
This is on 10.11.4, and I built the app with Xcode 7.3, so I should be getting whatever the latest behavior is.
Is there some particular way I have to configure the collection view to get the lazy-loading behavior?
—Jens
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden