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
@interface MAAppController : NSObject
@interface MAAppController : NSObject <NSApplicationDelegate>
@end

View File

@ -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