> On 2014 Sep 16, at 06:13, SevenBits <sevenbitst...@gmail.com> wrote: > > Could you perhaps upload the source? I'd like to take a look at this, as I am > trying to do something like this as well.
Here you go… https://github.com/jerrykrinock/NSOutlineViewLazinessDemo Unfortunately, it was easy to reproduce the problem. Last night, I was adding 1000 items to the outline’s root. As stated in my previous post, that behaved nice and lazy. Today I interposed a “Mother” item between the root and the 1000 children. Result: Expanding “Mother" loads all 1000 items immediately, beachballing the main thread until done, and then displaying only about 10 items. I have tested in both Os X 10.10 DP 8 and 10.9, and built with both the 10.9 and 10.10 SDK, and get the same result in all cases. This is very sad, and I wonder if there is any way to fix it without re-implementing NSOutlineView. Apparently it’s the *expand* operation which is not smart enough to realize the small number of items that can be displayed. (So I guess you would not see this behavior in a table view.) Maybe there is a technical reason for this behavior which was realized 25 years ago, but I have not thought of it yet. Please share any ideas. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com