Update document inspecter when file moved

This commit is contained in:
1024jp 2015-07-28 17:57:35 +09:00
parent a5130a5a29
commit dbc053a1b5
2 changed files with 15 additions and 0 deletions

View File

@ -30,6 +30,7 @@ develop
### Fixes
- Fix an issue where the full path display in the document inspector did not update after the document file moved.
- Fix an issue where line numbers were not drawn completely on OS X 10.8 when scroll bars are set as always shown.
- Improve general stability.

View File

@ -604,6 +604,20 @@ NSString *const CEIncompatibleConvertedCharKey = @"convertedChar";
// NSFilePresenter Protocol
//=======================================================
// ------------------------------------------------------
/// file location has changed
- (void)presentedItemDidMoveToURL:(NSURL *)newURL
// ------------------------------------------------------
{
[super presentedItemDidMoveToURL:newURL];
__weak typeof(self) weakSelf = self;
dispatch_async(dispatch_get_main_queue(), ^{
[[weakSelf windowController] updateFileInfo];
});
}
// ------------------------------------------------------
/// file has been modified by an external process
- (void)presentedItemDidChange