I would like to be able to manually invoke NSDocument's saveDocument(). Right now, the user can save by choosing save from the file menu, but I would my app to automatically save every 10 minutes or so. I am pretty new at this, so bear with me. Can I just put the saveDocument method in my class which is a sub-class of NSDocument and then call that method every ten minutes? I would think that I would need to put something in that method? Or is there an entirely better way to go about this.
Right now, saving works (via the File menu) and the only method I implement in my NSDocument subclass is the: public NSData dataRepresentationOfType(String aType).
Thanks for any help.