add file to recent documents @ close time.

This commit is contained in:
Kelvin Sherlock 2011-03-10 23:21:34 -05:00
parent 261aba02db
commit 01d54afcc3
1 changed files with 6 additions and 0 deletions

View File

@ -347,6 +347,12 @@ static unsigned ExtToTag(NSString *ext)
- (void)windowWillClose:(NSNotification *)notification
{
if (_filePath)
{
NSURL *url = [NSURL fileURLWithPath: _filePath isDirectory: NO];
[[NSDocumentController sharedDocumentController] noteNewRecentDocumentURL: url];
}
[self release];
}