Add autosave
This commit is contained in:
parent
3d0a156816
commit
0a367860bc
|
@ -16,6 +16,6 @@ typedef void (^MASheetBlock)(NSInteger returnCode);
|
|||
|
||||
@end
|
||||
|
||||
@interface MAAppController : NSObject
|
||||
@interface MAAppController : NSObject <NSApplicationDelegate>
|
||||
|
||||
@end
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user