• 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
[SOLVED] NSManagedObject setValue:forKey: slow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SOLVED] NSManagedObject setValue:forKey: slow


  • Subject: [SOLVED] NSManagedObject setValue:forKey: slow
  • From: Lee Morgan <email@hidden>
  • Date: Fri, 17 Jun 2005 20:33:42 -0400

Disregard.
It hit me just after I sent the mail.
I changed my code to add the objects to a NSSet then I set the NSSet after cycling through all the items.

- Lee


On Jun 17, 2005, at 8:12 PM, Lee Morgan wrote:

I'm using NSManagedObject's setValue:forKey: to set a object for a to-one relationship.
However it seems to be considerably slower than setting any other value of my object.

I've cycling though a large array and setting this relationship for each object, as such this is causing my GUI to lock up for a few seconds every time I do this.

Any suggestions on how to speed this up or a way to prevent the GUI from locking would be great.
Threading doesn't seem to be the answer, as I don't believe it is thread save - don't know for sure though, can't seem to find it in the docs.

 _______________________________________________
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: 
 >NSManagedObject setValue:forKey: slow (From: Lee Morgan <email@hidden>)

  • Prev by Date: NSManagedObject setValue:forKey: slow
  • Next by Date: Does NSURLConnection automatically decode gzip'd data?
  • Previous by thread: NSManagedObject setValue:forKey: slow
  • Next by thread: Does NSURLConnection automatically decode gzip'd data?
  • Index(es):
    • Date
    • Thread