Re: to make NSOutlineView faster
Re: to make NSOutlineView faster
- Subject: Re: to make NSOutlineView faster
- From: "Hamish Allan" <email@hidden>
- Date: Thu, 17 Apr 2008 17:16:51 +0200
On Thu, Apr 17, 2008 at 4:48 PM, Nick Rogers <email@hidden> wrote:
> This shows that my internal checking/unchecking mechanism is fast. as the
> second time the time is considerably less.
Not necessarily... it may simply be that your data is being cached
closer to where it is needed.
The outline view should only try to determine checkedness for items
currently visible, so I doubt it has much impact.
> Is there a way to make this checking/unchecking faster?
Sure -- have a third state in addition to checked and unchecked:
"inherit the state of the ancestor" (the default). Then have your
getter for checked return [parent isChecked] in this third case. Now
you don't need to check or uncheck all the children of each item.
Best wishes,
Hamish
_______________________________________________
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