views:

26

answers:

2

Does anyone have some tips as to how to insert tablecells when CoreData objects have been added? What possibilities does coredata have to notify the tableView? Or should the tableView monitor CoreData? Will I get into trouble when doing a reloadData? I am looking for a/the way to do this. I can probably figure the code out from there.

+1  A: 

That's what NSFetchedResultsController is for. Read the documentation for that class, it basically contains a full complement of code you need to implement.

Ole Begemann
Yes, I am aware of that and have many tableView with coredata as the source, but what I want to achieve now is have a UITableView on screen, and when in the background an entry is made into CoreData, I want to insert a tableCell (Without doing a reloadData).
P5ycH0
Found something which looks like it can provide what I want: NSManagedObjectContextObjectsDidChangeNotification
P5ycH0
A: 

I used the notifications from NSManagedObjectContextObjectsDidChangeNotification

P5ycH0