From 0a367860bc5ed640dc012896fefed53c59a620d0 Mon Sep 17 00:00:00 2001 From: Matthias Neeracher Date: Sun, 14 Aug 2011 01:15:46 +0200 Subject: [PATCH] Add autosave --- Medianno/MAAppController.h | 2 +- Medianno/MAAppController.mm | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/Medianno/MAAppController.h b/Medianno/MAAppController.h index d0312c4..1e6e863 100644 --- a/Medianno/MAAppController.h +++ b/Medianno/MAAppController.h @@ -16,6 +16,6 @@ typedef void (^MASheetBlock)(NSInteger returnCode); @end -@interface MAAppController : NSObject +@interface MAAppController : NSObject @end diff --git a/Medianno/MAAppController.mm b/Medianno/MAAppController.mm index 5055f56..9d67596 100644 --- a/Medianno/MAAppController.mm +++ b/Medianno/MAAppController.mm @@ -31,14 +31,9 @@ @implementation MAAppController -- (id)init +- (void)applicationDidFinishLaunching:(NSNotification *)notification { - self = [super init]; - if (self) { - // Initialization code here. - } - - return self; + [[NSDocumentController sharedDocumentController] setAutosavingDelay:30.0]; } @end