Cocoa @sum array operator too slow - alternatives?
Posted
by icodestuff
on Stack Overflow
See other posts from Stack Overflow
or by icodestuff
Published on 2010-04-28T01:32:55Z
Indexed on
2010/04/28
1:33 UTC
Read the original article
Hit count: 497
I've got a text field value bound to a key path that uses @sum. When the array controller is filtered, the text field updates properly, but extremely slowly, lagging the UI or outright beachballing after every key press (less so as the number of items in arrangedObjects decreases). There is no lag if I don't use @sum; I've narrowed it down to this.
Is there a faster way to do the same thing?
© Stack Overflow or respective owner