• 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: Cocoa bindings performance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Cocoa bindings performance (From: Niels Meersschaert <email@hidden>)
 >Re: Cocoa bindings performance (From: mmalcolm crawford <email@hidden>)
 >Re: Cocoa bindings performance (From: Niels Meersschaert <email@hidden>)
 >Re: Cocoa bindings performance (From: mmalcolm crawford <email@hidden>)
 >Re: Cocoa bindings performance (From: Niels Meersschaert <email@hidden>)
 >Re: Cocoa bindings performance (From: Scott Anguish <email@hidden>)

  • Prev by Date: Re: Function definitions
  • Next by Date: Re: Function definitions
  • Previous by thread: Re: Cocoa bindings performance
  • Next by thread: Unable to link universal binary
  • Index(es):
    • Date
    • Thread