Populate services clipboard with items of type NSFilenamesPboardType

Back when this code was written there was a lot of problems related to application expectations (especially for the copy clipboard), and that might have been why we did not put NSFilenamesPboardType on the (services) clipboard, but it seems strange as it’s the only type we actually declare support for.
This commit is contained in:
Allan Odgaard
2016-09-30 12:43:55 +02:00
parent 414794603f
commit b47b160498

View File

@@ -104,6 +104,8 @@ FSDataSource* DataSourceForURL (NSURL* anURL, NSUInteger someOptions)
if(servicesPboard)
{
if([paths count])
[types addObject:NSFilenamesPboardType];
if(string = [paths lastObject])
[types addObject:NSStringPboardType];
}