Add autosave

This commit is contained in:
Matthias Neeracher 2011-08-14 01:15:46 +02:00
parent 3d0a156816
commit 0a367860bc
2 changed files with 3 additions and 8 deletions

View File

@ -16,6 +16,6 @@ typedef void (^MASheetBlock)(NSInteger returnCode);
@end @end
@interface MAAppController : NSObject @interface MAAppController : NSObject <NSApplicationDelegate>
@end @end

View File

@ -31,14 +31,9 @@
@implementation MAAppController @implementation MAAppController
- (id)init - (void)applicationDidFinishLaunching:(NSNotification *)notification
{ {
self = [super init]; [[NSDocumentController sharedDocumentController] setAutosavingDelay:30.0];
if (self) {
// Initialization code here.
}
return self;
} }
@end @end