title: managedObjectContext deleteObject:matches not deleting data from Core data base?
body: <p>Am trying to delete row  from core data base in ios application buts its not  working,    </p>
  
  <pre><code>if (editingStyle == UITableViewCellEditingStyleDelete) {
  
       appDelegate = [[UIApplication sharedApplication] delegate];   
          NSEntityDescription *entityDesc = [NSEntityDescription entityForName:@"PRODUCTTABLE" inManagedObjectContext:appDelegate.managedObjectContext];        
          NSFetchRequest *request = [[NSFetchRequest alloc] init];        
          [request setEntity:entityDesc];        
          NSError *error; 
          NSManagedObject *matches = nil;
          NSArray *objects = [appDelegate.managedObjectContext executeFetchRequest:request error:&amp;error];
          NSLog(@"Array Count....%d",[objects count]);
          matches=[objects objectAtIndex:([indexPath row])];
          NSLog(@"...%@",[matches valueForKey:@"productID"]);
          NSLog(@"...%@",[matches valueForKey:@"pName"]);
          NSLog(@"...%@",[matches valueForKey:@"pPrice"]);
          NSLog(@"...%@",[matches valueForKey:@"pDate"]);           
          [appDelegate.managedObjectContext deleteObject:matches];
  
  
      }   
  </code></pre>
  
  <p>the o/p for following code:</p>
  
  <pre><code>Array Count....12
  ...ABC1226
  ...ABC-005
  ...599.39
  ...2012-08-09 05:07:50 +0000
  </code></pre>
  
  <p>am getting data from core data with same NSManagedObject. why delete not updating on Core data?</p>