I've got a view controller with a tablview that shows data from an NSFetchedResultsController and that's great, it's working well.
Each object in the FRC represents a file which has or hasn't yet been downloaded from the server. When the user taps on a row, the app checks if the file has been downloaded, and if not downloads it, and then updates the object to flag that it has been downloaded. When the user taps the row again, it should know it's been downloaded, and simply open the file.
What's happening however, is that the file is downloaded, and the object is being updated, however when I tap on the row again, it the FRC's version of the object hasn't been updated to reflect the new changes, so it doesn't think that the file has been downloaded and thus downloads it again.
Do I need to re-fetch the data in the FRC or am I doing something else wrong? Thanks