Re: Saving a core data model to persistent store makes application hang
Re: Saving a core data model to persistent store makes application hang
- Subject: Re: Saving a core data model to persistent store makes application hang
- From: Jim Correia <email@hidden>
- Date: Sun, 26 Nov 2006 17:07:13 -0500
On Nov 26, 2006, at 3:36 PM, Bill Bumgarner wrote:
After this it simply keeps repeating. So there seems to be nothing
wrong with the relations, at least, it only requests the parent
relation. But why would it keep on looping over that one object?
These 6 lines keep repeating? That would indicate that there is
something in your code that triggers a change notificaiton that
triggers a subsequent change that causes another notification ad
nauseum.
The original code Remco posted had a -willSave with the following
implementation:
- (void)willSave {
[self setValue:NSStringFromRect(bounds) forKey:@"boundsAsString"];
[super willSave];
}
-willSave is allowed to have side effects, but it must use the
primitive accessors to avoid generating additional change notifications.
http://www.cocoabuilder.com/archive/message/cocoa/2005/5/2/134506
Jim
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden