Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Over riding saveDocument (cocoa:java)

Over riding saveDocument (cocoa:java)
Thread Tools
Mac Enthusiast
Join Date: Sep 2000
Location: Vermont, USA
Status: Offline
Reply With Quote
Apr 24, 2002, 12:47 PM
 
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.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:53 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2