diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-09-02 21:39:51 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-09-02 21:39:51 +0000 |
commit | a57921595d78935b6305be61d7e12203c1bbadb6 (patch) | |
tree | f4ce19627f701fe8370537e98e872b812fd68006 /Source | |
parent | 4b2e5c702979eca026addfd82c24d78173b017a2 (diff) | |
download | sequelpro-a57921595d78935b6305be61d7e12203c1bbadb6.tar.gz sequelpro-a57921595d78935b6305be61d7e12203c1bbadb6.tar.bz2 sequelpro-a57921595d78935b6305be61d7e12203c1bbadb6.zip |
• added "Recent Open" menu item to Main Menu > File
Diffstat (limited to 'Source')
-rw-r--r-- | Source/TableDocument.m | 8 |
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; } |