diff options
Diffstat (limited to 'Source/SPAppController.m')
-rw-r--r-- | Source/SPAppController.m | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/SPAppController.m b/Source/SPAppController.m index 15e36fc4..43d7b8c5 100644 --- a/Source/SPAppController.m +++ b/Source/SPAppController.m @@ -546,6 +546,16 @@ return [[NSDocumentController sharedDocumentController] documents]; } +/* Support for "make new document" +*/ +- (void)insertInOrderedDocuments:(TableDocument *)doc { + if ([[NSUserDefaults standardUserDefaults] boolForKey:@"AutoConnectToDefault"]) + [doc setShouldAutomaticallyConnect:YES]; + [[NSDocumentController sharedDocumentController] addDocument:doc]; + [doc makeWindowControllers]; + [doc showWindows]; +} + /* * AppleScript calls that method to get the available windows */ |