mirror of
https://github.com/ksherlock/ProFUSE-Image-Opener.git
synced 2025-08-15 18:27:24 +00:00
add file to recent documents @ close time.
This commit is contained in:
@@ -347,6 +347,12 @@ static unsigned ExtToTag(NSString *ext)
|
|||||||
|
|
||||||
- (void)windowWillClose:(NSNotification *)notification
|
- (void)windowWillClose:(NSNotification *)notification
|
||||||
{
|
{
|
||||||
|
if (_filePath)
|
||||||
|
{
|
||||||
|
NSURL *url = [NSURL fileURLWithPath: _filePath isDirectory: NO];
|
||||||
|
[[NSDocumentController sharedDocumentController] noteNewRecentDocumentURL: url];
|
||||||
|
}
|
||||||
|
|
||||||
[self release];
|
[self release];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user