Re: Cocoa bindings performance
Re: Cocoa bindings performance
- Subject: Re: Cocoa bindings performance
- From: Niels Meersschaert <email@hidden>
- Date: Sat, 8 Apr 2006 21:09:41 -0400
Yes, I'm trying to get the sum of that field. In IB I have set up an
NSArrayController using the managedObjectContext set to use my entity
in the Attributes section. I then have a text field with a binding
to that controller's arrangedObjects with the model key path as
@sum.field where field is an NSNumber field I want the total across
all entity instances of.
What's weird is if I manually do the @sum using the code in my
readFromUrl method, it's very fast (<1 second) & then the binding has
no impact on performance. But if I don't run that code line on
readFromUrl, the GUI spends over 3 minutes finding the sum.
On Apr 8, 2006, at 6:28 PM, Scott Anguish wrote:
On Apr 8, 2006, at 3:36 PM, Niels Meersschaert wrote:
[results valueForKeyPath:@"@sum.field"] which immediately gives me
the sum count in less than half a second.
do you have an @sum in a field that is displayed in the UI
someplace? depending on how you've got that bound (and where it
is) this can cause a significant performance impact.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden