Hi all, I am trying to implement autosaving to my NSTextView everytime that a user enters a character i have set up a textDidChange method but I do not know about autosaving. I have looked on the Apple documentation but there is very little on autosaving this is the code I have:
Thanks
Stephen
Code:
- (void)textDidChange:(NSNotification *)notification
{
[self setString:[textView textStorage]];
[self autosaveDocumentWithDelegate:textView didAutosaveSelector:@selector(dataOfType:textStorage:) contextInfo:nil];
}
Thanks
Stephen