aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDocument.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-09-02 21:39:51 +0000
committerBibiko <bibiko@eva.mpg.de>2009-09-02 21:39:51 +0000
commita57921595d78935b6305be61d7e12203c1bbadb6 (patch)
treef4ce19627f701fe8370537e98e872b812fd68006 /Source/TableDocument.m
parent4b2e5c702979eca026addfd82c24d78173b017a2 (diff)
downloadsequelpro-a57921595d78935b6305be61d7e12203c1bbadb6.tar.gz
sequelpro-a57921595d78935b6305be61d7e12203c1bbadb6.tar.bz2
sequelpro-a57921595d78935b6305be61d7e12203c1bbadb6.zip
• added "Recent Open" menu item to Main Menu > File
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r--Source/TableDocument.m8
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index 946031a7..cafdf4b7 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -408,6 +408,7 @@
}
[self setFileURL:[NSURL URLWithString:path]];
+ [[NSDocumentController sharedDocumentController] noteNewRecentDocumentURL:[NSURL URLWithString:path]];
[spfDocData setObject:[NSNumber numberWithBool:NO] forKey:@"auto_connect"];
if([spf objectForKey:@"auto_connect"] && [[spf valueForKey:@"auto_connect"] boolValue]) {
@@ -593,7 +594,7 @@
if(spfSession != nil)
[self restoreSession];
// [self performSelector:@selector(restoreSession) withObject:nil afterDelay:0.3];
-
+ NSLog(@"r %@",[[NSDocumentController sharedDocumentController] recentDocumentURLs]);
}
/**
@@ -2067,6 +2068,9 @@
NSAlert *errorAlert = [NSAlert alertWithError:error];
[errorAlert runModal];
}
+
+ [[NSDocumentController sharedDocumentController] noteNewRecentDocumentURL:[NSURL URLWithString:fileName]];
+
return;
}
@@ -2171,6 +2175,8 @@
[errorAlert runModal];
}
+ [[NSDocumentController sharedDocumentController] noteNewRecentDocumentURL:[self fileURL]];
+
return;
}