You're not supposed to modify the collection being iterated upon with fast enumeration, but I'm not really sure to what extent that is. The below code has not caused me any problems, but I'm not sure if it was me being lucky. Does anyone have a defininite answer?
for(NSManagedObject *myObject in myArray) {
[myObject.managedObjectContext deleteObject:myObject];
}
So I'm not really modifying the array, but I am deleting the object from the context, which might just indirectly modify the array, but I'm not sure on that..