• 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: "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

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

  • Prev by Date: Re: Vended Object Setters
  • Next by Date: Re: Vended Object Setters
  • Previous by thread: Re: to make NSOutlineView faster
  • Next by thread: Re: to make NSOutlineView faster
  • Index(es):
    • Date
    • Thread