Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

ASTableView with NSFetchedResultsController #695

@1nput0utput

Description

@1nput0utput

I am facing an issue when I use ASTableView with NSFetchedResultsController, I am unable to perform any update to the tableView inside NSFetchedResultController delegate -didChangeObject,
I get this:
Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[NSMutableArray insertObjects:atIndexes:]: index 17 in index set beyond bounds [0 .. 0]'

Shouldn't calling -endUpdates() do all the inserts and updates???

If I run the same operation on the table -- I save the indices require insert or update in an array -- inside -controllerDidChangeContent before calling -endUpdates() I have no crash. I don't see how this is any different compare to controllerDidChangeContent.

Anyone have an idea why this is happening?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions