diff options
Diffstat (limited to 'Source/TableDocument.m')
-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; } |