On 21 Dec 2010, at 8:36 AM, Paulo Andrade wrote: > int tries = 10; > while ( tries-- ) { > // compute this batch > > [moc save:&error]; > if (error != nil && [error code] == NSManagedObjectMergeError) {
This may not be your main problem, but you should never inspect a returned error object unless the method that returned it reports a failure: if (! [moc save: &error] && [error code] == NSManagedObjectMergeError) { ... Such methods are free to set the error object at their start, in case they fail, but the error is correct only if the method does fail. — F _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com