add file to recent documents @ close time.
This commit is contained in:
parent
261aba02db
commit
01d54afcc3
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue