core data getting on my nerves. i\' m deleting old data and want to insert new data received from server.
now the deleting part gives a \"sigabort\":
do it like this for deleting an object permanently
for (TEventContact *tmpCon in allCons)
{
[context deleteObject:tmpCon] /// for deleting object in context
}
[context save]; /// to reflect changes in database you need to save that context
without saving the context it doesn't reflect on data base and that may cause DIRTY_READ for another context
Use
[context deleteObject:tmpCon];
It will solve the problem