UIDocument provides updateChangeCount
for this. Send this to your UIDocument (subclass) after you made a change or let the UIDocument listen to notifications sent from viewcontrollers with the selector set appropriately .
E.g. in the init of your UIDocument class:
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(somethingChanged) name:@"DocumentDidChangeNotification" object:nil];
Also in UIDocument:
- (void)somethingChanged {
[self updateChangeCount:UIDocumentChangeDone];
}
And in a view controller, when the content changed, do:
[[NSNotificationCenter defaultCenter] postNotificationName:@"DocumentDidChangeNotification" object:nil];