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