[SOLVED] NSManagedObject setValue:forKey: slow
[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