Hi all. Im currently developing a holiday journal like application which stores each place you have visited by its type. For instance, a restaurant name should be stored under 'food' section. I have managed to work with core data and create the table with no problem. However, the problem is whenever i try to change the type of a place (thus tableview need to reorder), i would get an error message:
2009-07-22 21:04:58.150 HolidayTest[8662:20b] Serious application error. Exception was caught during Core Data change processing: * -[NSCFArray removeObjectAtIndex:]: index (4) beyond bounds (4) with userInfo (null) 2009-07-22 21:04:58.151 HolidayTest[8662:20b] * Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[NSCFArray removeObjectAtIndex:]: index (4) beyond bounds (4)'
I know the fetch results controller's delegate has updated the table. But the problem is the fetch controller has not updated its own section and row data. The easy way is to tell the fetch results controller to refetch its data if user changes its type. However, its not efficient way to manage the data.
Could please anyone give my some help on this.