• 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:TableView slow to redraw
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re:TableView slow to redraw


  • Subject: Re:TableView slow to redraw
  • From: Doug Adams <email@hidden>
  • Date: Wed, 08 Jun 2011 15:00:40 -0400

On June 7, 2011, at 7:42 PM, Shane Stanley wrote:

> It's slow because, well, it takes time. All you can do is try to speed it
> up. Using a variable containing a reference to the column would avoid
> getting an identifier and coercing it every time, but I suspect the big
> killer is that you're calling arrangedObjects() on every cell.
>
> If you can work out how to cache that -- or even cache just the values for
> tCheckbox -- that might help.
>
> Perhaps using a second array controller bound to the first, with a key path
> of tCheckbox and a class of NSArray, might speed things up a bit (or it
> might not...).
>
> The other option is to rewrite that bit in Objective-C...

Thanks Shane.

I tried using the second array as suggested, and while it worked (neat!) it was
no faster. I still had to use arrangedObjects as the Controller key to get values
from the second controller. So if arrangedObjects is the problem there's no
avoiding it in that scenario.

I'll be thinking more about this, although it looks like I'll be cracking the Hillegass.

Doug
--
dougscripts.com






 _______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: TableView slow to redraw
  • Next by Date: Re:TableView slow to redraw
  • Previous by thread: Re: TableView slow to redraw
  • Next by thread: Re:TableView slow to redraw
  • Index(es):
    • Date
    • Thread