title: iPhone & Core Data - Removing NSManagedObject?
body: <p>I'm trying to remove a managed object context, but instead of removing the object itself it sets all instant variables to null.
  Am I doing anything wrong while deleting an instant of NSManagedObjectContext?</p>
  
  <pre><code>@implementation MyManagedObject
  
  - (BOOL)submitToServer
  {
       if (/*submitted successfully*/)
       {
            return YES;
       }
       else
       {
            [self.managedObjectContext deleteObject:self];
            return NO;
       }
  }
  
  @end
  </code></pre>