I\'m having some trouble getting my Core Data entities to play nice and order when using an UITableView.
I\'ve been through a number of tutorials and other questions
I think that:
affectedObject.displayOrderValue = toIndex;
must be placed after:
for (NSUInteger i = start; i <= end; i++) {
FFObject *otherObject = [self.fetchedResultsController.fetchedObjects objectAtIndex:i];
NSLog(@"Updated %@ / %@ from %i to %i", otherObject.name, otherObject.state, otherObject.displayOrderValue, otherObject.displayOrderValue + delta);
otherObject.displayOrderValue += delta;
}
and before:
[self FF_fetchResults];