iphone Core Data Unresolved error while saving

Posted by Ahmed Kotb on Stack Overflow See other posts from Stack Overflow or by Ahmed Kotb
Published on 2009-08-16T10:19:48Z Indexed on 2010/04/18 17:13 UTC
Read the original article Hit count: 406

Filed under:
|

I am getting a strange error message from the core data when trying to save but the problem that the error is not reproducible ( it appears at different times when doing different tasks) the error message:


Unresolved error Domain=NSCocoaErrorDomain Code=1560 UserInfo=0x14f5480 "Operation could not be completed. (Cocoa error 1560.)", {
NSDetailedErrors = (
Error Domain=NSCocoaErrorDomain Code=1570 UserInfo=0x5406d70 "Operation could not be completed. (Cocoa error 1570.)",
Error Domain=NSCocoaErrorDomain Code=1570 UserInfo=0x14f9be0 "Operation could not be completed. (Cocoa error 1570.)"
);
}

and the method that generates the error is:


- (IBAction)saveAction:(id)sender {
    NSError *error;
    if (![[self managedObjectContext] save:&error]) {
    	// Handle error
    	NSLog(@"Unresolved error %@, %@, %@", error, [error userInfo],[error localizedDescription]);
    	exit(-1);  // Fail
    }
}

any idea for the reason of this message ? giving that it appears at random times

© Stack Overflow or respective owner

Related posts about iphone

Related posts about core-data