Hi!
I have a NSTableView
with one column bound to NSArrayController
representing a collection of entities from a NSManagedObjectContext
. I also have a "remove" button that is connected to NSArrayController's
remove action, and it all works fine - table is showing data, when I click 'remove', the entity gets removed from the table etc.
However, this removal seems to be only happening in the object graph is never persisted to disk. Is there any flag or a way to persist such changes to object graph automatically or is the only way introducing new IBAction
for the remove button and explicitely calling first remove
on the controller and then save
on NSManagedObjectContext
?