NSFileVersion additional methods.

This commit is contained in:
Gregory John Casamento 2019-09-23 02:51:41 -04:00
parent 1d04d0c9e9
commit 0644317ab4
4 changed files with 111 additions and 10 deletions

View file

@ -152,7 +152,10 @@ static NSMutableDictionary *__presenterMap = nil;
if(options == 0L)
{
id<NSFilePresenter> p = [__presenterMap objectForKey: url];
[p savePresentedItemChangesWithCompletionHandler:NULL];
if([p respondsToSelector: @selector(savePresentedItemChangesWithCompletionHandler:)])
{
[p savePresentedItemChangesWithCompletionHandler:NULL];
}
}
CALL_BLOCK(reader, url);
}
@ -165,7 +168,10 @@ static NSMutableDictionary *__presenterMap = nil;
if(options == 0L)
{
id<NSFilePresenter> p = [__presenterMap objectForKey: url];
[p savePresentedItemChangesWithCompletionHandler:NULL];
if([p respondsToSelector: @selector(savePresentedItemChangesWithCompletionHandler:)])
{
[p savePresentedItemChangesWithCompletionHandler:NULL];
}
}
CALL_BLOCK(writer, url);
}
@ -179,15 +185,15 @@ static NSMutableDictionary *__presenterMap = nil;
{
}
- (void)itemAtURL:(NSURL *)oldURL didMoveToURL: (NSURL *)newURL
- (void)itemAtURL: (NSURL *)oldURL didMoveToURL: (NSURL *)newURL
{
}
- (void)itemAtURL:(NSURL *)oldURL willMoveToURL: (NSURL *)newURL
- (void)itemAtURL: (NSURL *)oldURL willMoveToURL: (NSURL *)newURL
{
}
- (void)itemAtURL:(NSURL *)url didChangeUbiquityAttributes: (NSSet *)attributes
- (void)itemAtURL: (NSURL *)url didChangeUbiquityAttributes: (NSSet *)attributes
{
}