• 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 16:48:52 -0700

On 2014 Sep 16, at 15:23, Kyle Sluder <email@hidden> wrote:

> I'd try wrapping things in an NSAnimationContext with allowsImplicitAnimation=NO. Though I'm not sure where you would have the opportunity to wrap the built-in expand behavior.

Yes, I’ve never understood “graphics contexts” and its new friend NSAnimationContext.  They seem like these magic singletons that just exist in the ether.  Anyhow, I tried doing this…

    [[NSAnimationContext currentContext] setAllowsImplicitAnimation:NO] ;

both in -applicationDidFinishLaunching and in -outlineView:numberOfChildrenOfItem:.  The latter is about the last thing that happens before the data source becomes deluged with messages on all items.  There was no effect.

I also looked at the NSTableViewAnimationOptions stuff suggested by Jens, but the only place to plug that in is in the -insertRows… and -removeRows… methods, and the documentation indicates that these options are all about view-based tables.

Finally, I did a video capture on the animation so I could look at it frame-by-frame to see what was going on.  Interestingly, when there are 1000 rows to be expanded but only 10 will fit in the window, the animation starts by drawing the tenth item at the top, then moves it down, and then the other nine progressively do the same.  So, the animation should not be a cause for fetching the bottom 990 items.

Conclusion: I don’t think this has anything to do with animation.

* * *

Weird that here we are with the Apple Watch and Swift, and old NSOutlineView still doesn’t work as it should.
_______________________________________________

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: Corbin Dunn <email@hidden>
    • Re: NSOutlineView not lazy when expanding items :(
      • From: Alex Kac <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>)
 >Re: NSOutlineView not lazy when expanding items :( (From: Jerry Krinock <email@hidden>)
 >Re: NSOutlineView not lazy when expanding items :( (From: Jens Alfke <email@hidden>)
 >Re: NSOutlineView not lazy when expanding items :( (From: Jerry Krinock <email@hidden>)
 >Re: NSOutlineView not lazy when expanding items :( (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: NSOutlineView not lazy when expanding items :(
  • Next by Date: Re: NSOutlineView not lazy when expanding items :(
  • Previous by thread: Re: NSOutlineView not lazy when expanding items :(
  • Next by thread: Re: NSOutlineView not lazy when expanding items :(
  • Index(es):
    • Date
    • Thread