Whenever my document is renamed , autosaving is blocked and the first save after the rename presents the pictured message.
Technically its not an issue as either button takes the user back to a autosavable state but it is confusing for my users.
I have tried hooking the method
-(void)moveToURL:(NSURL *)url completionHandler:(void (^)(NSError *))completionHandler
{
void(^takeoverblock)(NSError *error) = ^(NSError *error){
if (completionHandler) {
completionHandler(error);
}
if (!error) {
[self updateChangeCountWithToken:[self changeCountTokenForSaveOperation:NSAutosaveInPlaceOperation] forSaveOperation:NSAutosaveInPlaceOperation];
}
};
[super moveToURL:url completionHandler:takeoverblock];
}
and using various flavours of updateChangeCount:
and updateChangeCountWithToken:
but the warning consistently appears.
How do I put the document in a state where it resumes standard autosave behaviour after a rename/move.?