• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSOutlineView not lazy when expanding items :(
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOutlineView not lazy when expanding items :(


  • Subject: Re: NSOutlineView not lazy when expanding items :(
  • From: Jerry Krinock <email@hidden>
  • Date: Tue, 16 Sep 2014 10:23:41 -0700

> On 2014 Sep 16, at 06:13, SevenBits <email@hidden> 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 (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


  • Follow-Ups:
    • Re: NSOutlineView not lazy when expanding items :(
      • From: Jens Alfke <email@hidden>
References: 
 >Want NSTableView NSOutlineView to load lazy like iOS? (From: Jerry Krinock <email@hidden>)
 >Re: Want NSTableView NSOutlineView to load lazy like iOS? (From: Ken Thomases <email@hidden>)
 >Re: Want NSTableView NSOutlineView to load lazy like iOS? (From: Jerry Krinock <email@hidden>)
 >Re: Want NSTableView NSOutlineView to load lazy like iOS? (From: Ken Thomases <email@hidden>)
 >Re: Want NSTableView NSOutlineView to load lazy like iOS? (From: Jerry Krinock <email@hidden>)
 >Re: Want NSTableView NSOutlineView to load lazy like iOS? (From: SevenBits <email@hidden>)

  • Prev by Date: Heavy flickering on Retina Macs with Yosemite & NSVisualEffectView & overlay windows
  • Next by Date: Re: NSOutlineView not lazy when expanding items :(
  • Previous by thread: Re: Want NSTableView NSOutlineView to load lazy like iOS?
  • Next by thread: Re: NSOutlineView not lazy when expanding items :(
  • Index(es):
    • Date
    • Thread