title: CoreData 1570 Error Code
body: <p>Currently all of my saves are going to memory but are not being written out to disk (iOS). My app is set up with a <code>UITableView</code> with an Add Modal View presented over this to create content, when the user is done creating the content and the save button is clicked the new Item (NSManagedObject class created by my CoreData Model) I print it out and it is fully filled in. Immediately after this I try to save it to disk and an error message is produced with the same object ID except the fields are nil. In between however my UITableViews - <code>(BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath</code>
   method is getting called which is logging <code>@"CanEdit"</code>.</p>
  
  <p>Can anyone see what I am doing wrong?</p>
  
  <p>Here is the code</p>
  
  <pre><code>        NSLog(@"newItem %@", newItem);
      NSError *error;
      if (![newItem.managedObjectContext save:&amp;error]) {
          // Handle the error.
          NSLog(@"%@", error);
      }
  
      if (editItem) {
          [self.navigationController popViewControllerAnimated:YES];
      } else {
          [self dismissModalViewControllerAnimated:YES];            
      }
  </code></pre>
  
  <p>And Here is my error</p>
  
  <pre><code>2011-10-22 15:24:46.322 App[42115:fb03] newItem &lt;Item: 0x81a4a30&gt; (entity: Item; id: 0x81a0ab0 &lt;x-coredata:///Item/t7F2B54D2-0DCC-4530-88D5-900BE25C7DC23&gt; ; data: {
      containedIn = "0x6e89010 &lt;x-coredata:///Item/t7F2B54D2-0DCC-4530-88D5-900BE25C7DC22&gt;";
      contains =     (
      );
      content = a;
      dateLastUsed = nil;
      depth = 0;
      encrypted = 0;
      favorite = 0;
      favoritePosition = nil;
      folder = 0;
      fullPath = "^Templates^Add Title";
      name = a;
      sortPosition = 0;
  })
  2011-10-22 15:24:46.323 App[42115:fb03] CanEdit
  2011-10-22 15:24:46.326 App[42115:fb03] Error Domain=NSCocoaErrorDomain Code=1570 "The operation couldn’t be completed. (Cocoa error 1570.)" UserInfo=0x6ecc490     
  {NSValidationErrorObject=&lt;Item: 0x6e88fb0&gt; (entity: Item; id: 0x6e89010 &lt;x-coredata:///Item/t7F2B54D2-0DCC-4530-88D5-900BE25C7DC22&gt; ; data: {
      containedIn = nil;
      contains =     (
          "0x81a0ab0 &lt;x-coredata:///Item/t7F2B54D2-0DCC-4530-88D5-900BE25C7DC23&gt;"
      );
      content = nil;
      dateLastUsed = nil;
      depth = 0;
      encrypted = 0;
      favorite = 0;
      favoritePosition = nil;
      folder = 1;
      fullPath = "^Templates^";
      name = Templates;
      sortPosition = 0;
  }), NSValidationErrorKey=content, NSLocalizedDescription=The operation couldn’t be completed. (Cocoa error 1570.)}
  </code></pre>