• 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: to make NSOutlineView faster
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: to make NSOutlineView faster


  • Subject: Re: to make NSOutlineView faster
  • From: Corbin Dunn <email@hidden>
  • Date: Thu, 17 Apr 2008 10:49:56 -0700


On Apr 17, 2008, at 7:48 AM, Nick Rogers wrote:
Hi,
I have NSOutlineView display a tree of files and folders in the root "/" filesystem.
I also have checkboxes in the first column.
whenever a item is clicked, say first time, then this item and all its children are also marked internally.
so the check/uncheck mechanism also works internally to check/ uncheck the files and folders.


when displaying outline view i'm not reloading the root's children.

I run the app, it creates a tree of around 450000 entries in my Macintosh HD.
Now when i click to check root item, it takes around 2 mins to reflect and show the check boxes checked.
then I uncheck root item. And when I check again it takes around 20 seconds and the time stays at that.


This shows that my internal checking/unchecking mechanism is fast. as the second time the time is considerably less.

Is there a way to make this checking/unchecking faster?
Is there anything that can be done to outline view to achieve this?

Any ideas?

You really need to include 'sample' or shark traces, otherwise, we are just shooting in the dark guessing where your performance problem lies.


My guess is that you are calling -reloadItem:reloadChildren: too much, when you really don't even want to reload at all, and instead just want to redisplay those rows that have their state changed (call setNeedsDisplayInRect: -- row/cell frame for the ones to redisplay).

corbin
_______________________________________________

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


References: 
 >to make NSOutlineView faster (From: Nick Rogers <email@hidden>)

  • Prev by Date: Re: Cannot Remove Observer Error
  • Next by Date: Simulating menu bar blink in Cocoa
  • Previous by thread: Re: to make NSOutlineView faster
  • Next by thread: -charactersIgnoringModifiers and the shift key
  • Index(es):
    • Date
    • Thread