1//
2//  HBFilePromiseProvider.m
3//  HandBrake
4//
5//  Created by Damiano Galassi on 09/01/2020.
6//  Copyright © 2021 HandBrake. All rights reserved.
7//
8
9#import "HBFilePromiseProvider.h"
10
11@implementation HBFilePromiseProvider
12
13- (NSArray<NSPasteboardType> *)writableTypesForPasteboard:(NSPasteboard *)pasteboard
14{
15    NSMutableArray<NSPasteboardType> *types = [[super writableTypesForPasteboard:pasteboard] mutableCopy];
16    [types addObject:kHandBrakeInternalPBoardType];
17    return types;
18}
19
20- (NSPasteboardWritingOptions)writingOptionsForType:(NSPasteboardType)type pasteboard:(NSPasteboard *)pasteboard
21{
22    if ([type isEqualToString:kHandBrakeInternalPBoardType])
23    {
24        return 0;
25    }
26
27    return [super writingOptionsForType:type pasteboard:pasteboard];
28}
29
30- (id)pasteboardPropertyListForType:(NSPasteboardType)type
31{
32    if ([type isEqualToString:kHandBrakeInternalPBoardType])
33    {
34        return kHandBrakeInternalPBoardType;
35    }
36
37    return [super pasteboardPropertyListForType:type];
38}
39
40@end
41