Revision: 4121
http://skim-app.svn.sourceforge.net/skim-app/?rev=4121&view=rev
Author: hofman
Date: 2008-07-02 17:38:29 -0700 (Wed, 02 Jul 2008)
Log Message:
-----------
Add (for now) hidden pref for autosaving time.
Modified Paths:
--------------
trunk/SKDocumentController.m
Modified: trunk/SKDocumentController.m
===================================================================
--- trunk/SKDocumentController.m 2008-07-02 22:24:57 UTC (rev 4120)
+++ trunk/SKDocumentController.m 2008-07-03 00:38:29 UTC (rev 4121)
@@ -46,6 +46,9 @@
#import "SKUtilities.h"
#import "SKApplicationController.h"
+static NSString *SKAutosaveIntervalKey = @"SKAutosaveInterval";
+
+
// See CFBundleTypeName in Info.plist
static NSString *SKPDFDocumentTypeName = nil; /* set to NSPDFPboardType, not
@"NSPDFPboardType" */
static NSString *SKPDFBundleDocumentTypeName = @"PDF Bundle";
@@ -184,6 +187,13 @@
}
}
+- (id)init {
+ if (self = [super init]) {
+ [self setAutosavingDelay:[[NSUserDefaults standardUserDefaults]
integerForKey:SKAutosaveIntervalKey]];
+ }
+ return self;
+}
+
- (void)dealloc {
[customExportTemplateFiles release];
[super dealloc];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit