mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-11 20:00:30 +01:00
List monitor calling didDelete object instead of didUpdateObject #16
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tomasgibas on GitHub (Nov 5, 2015).
I am using ListMonitor to fill in table view .When I update object on web and sync with app observer call did update object correctly. When I update one object within the application, observer call monitor did delete object. After relaunch of app the updated object again appears in table with updates. I am using same method to update object: transaction.importUniqueObject(Into, source).
@JohnEstropia commented on GitHub (Nov 6, 2015):
@tomasgibas There is a current bug in
NSFetchedResultsController(which Apple seems to have no plans of fixing on iOS 8), although it's the first time I've heard it send out delete events.What iOS version are you seeing this? Can you try how it behaves in iOS 9?
Some related posts:
http://stackoverflow.com/questions/31383760/ios-9-attempt-to-delete-and-reload-the-same-index-path/31384014#31384014
https://forums.developer.apple.com/message/9998#9998
https://forums.developer.apple.com/message/31849#31849
CoreStore tries to work around most of the bug's behavior, but it's not perfect so it would help if you can outline how to reproduce other conditions.
@tomasgibas commented on GitHub (Nov 11, 2015):
Sorry for issue, I have found issue in my code. I was using empty Where statement, so on object update, fetch results controller thought it does not match predicate any more.
—
S pozdravom / Best regards
Tomas Gibas
iOS Developer
GoodRequest, s.r.o.
web http://www.goodrequest.com/ I twitter https://twitter.com/gibastek I facebook https://www.facebook.com/gibastek
@JohnEstropia commented on GitHub (Nov 11, 2015):
@tomasgibas Okay, glad you fixed it! Feel free to report any other issues!