Hello,
We use RATreeView in our project together with NSFetchedResultsController, but we get a problem when CoreDate context is saved with a few deleted objects.
I dived into RATreeView code and found a place with possible issue: file - RATreeView+Private.m, method - removeItemAtIndex:inParent:withAnimation:
Here we add RABatchChangeEntity with type RABatchChangeTypeItemRowInsertion to batchChanges. Later at invoking endUpdates RABatchChangeEntities are sorted by comparing type and changed object index in order to apply them in correct order.
Seems it is needed to replace "self.batchChanges insertItemWithBlock" to "self.batchChanges deleteItemWithBlock". But I am not sure that it produce another issues. If anyone faced with such problem, I will appreciate any help.
Also I made a simple demo with this crash. It is modified Example app from RATreeView, rows are removed at tapping Edit button on navbar which produce the crash.
Hello, We use RATreeView in our project together with NSFetchedResultsController, but we get a problem when CoreDate context is saved with a few deleted objects.
I dived into RATreeView code and found a place with possible issue: file - RATreeView+Private.m, method - removeItemAtIndex:inParent:withAnimation:
Here we add RABatchChangeEntity with type RABatchChangeTypeItemRowInsertion to batchChanges. Later at invoking endUpdates RABatchChangeEntities are sorted by comparing type and changed object index in order to apply them in correct order. Seems it is needed to replace "self.batchChanges insertItemWithBlock" to "self.batchChanges deleteItemWithBlock". But I am not sure that it produce another issues. If anyone faced with such problem, I will appreciate any help.
Also I made a simple demo with this crash. It is modified Example app from RATreeView, rows are removed at tapping Edit button on navbar which produce the crash.