Add missing protocols to fix deprecation warnings (#7826)

This commit is contained in:
Dzmitry Neviadomski
2025-11-18 15:13:59 +03:00
committed by GitHub
parent 84cc06c651
commit 821e70d742
11 changed files with 11 additions and 11 deletions

View File

@@ -26,7 +26,7 @@ typedef NS_ENUM(NSUInteger, AddType) { //
};
@interface Controller
: NSObject<NSApplicationDelegate, NSPopoverDelegate, NSSharingServiceDelegate, NSSharingServicePickerDelegate, NSSoundDelegate, NSToolbarDelegate, NSWindowDelegate, QLPreviewPanelDataSource, QLPreviewPanelDelegate, VDKQueueDelegate, SUUpdaterDelegate>
: NSObject<NSApplicationDelegate, NSMenuItemValidation, NSPopoverDelegate, NSSharingServiceDelegate, NSSharingServicePickerDelegate, NSSoundDelegate, NSToolbarDelegate, NSToolbarItemValidation, NSWindowDelegate, QLPreviewPanelDataSource, QLPreviewPanelDelegate, VDKQueueDelegate, SUUpdaterDelegate>
- (void)openFiles:(NSArray<NSString*>*)filenames addType:(AddType)type forcePath:(NSString*)path;

View File

@@ -24,7 +24,7 @@ typedef NS_ENUM(NSUInteger, TrackerSegmentTag) {
TrackerSegmentTagRemove = 1,
};
@interface CreatorWindowController ()<NSWindowRestoration>
@interface CreatorWindowController ()<NSWindowRestoration, NSMenuItemValidation>
@property(nonatomic) IBOutlet NSImageView* fIconView;
@property(nonatomic) IBOutlet NSTextField* fNameField;

View File

@@ -9,7 +9,7 @@
typedef void (^CompletionBlock)(BOOL);
@interface FileRenameSheetController ()
@interface FileRenameSheetController ()<NSControlTextEditingDelegate>
@property(nonatomic, weak) IBOutlet NSTextField* labelField;
@property(nonatomic, weak) IBOutlet NSTextField* inputField;

View File

@@ -20,7 +20,7 @@ extern FilterSearchType const FilterSearchTypeTracker;
extern NSInteger const kGroupFilterAllTag;
@interface FilterBarController : NSViewController
@interface FilterBarController : NSViewController<NSMenuItemValidation>
@property(nonatomic, readonly) NSArray<NSString*>* searchStrings;

View File

@@ -16,7 +16,7 @@ typedef NS_ENUM(NSInteger, SegmentTag) {
SegmentTagRemove = 1,
};
@interface GroupsPrefsController ()
@interface GroupsPrefsController ()<NSControlTextEditingDelegate>
@property(nonatomic) IBOutlet NSTableView* fTableView;
@property(nonatomic) IBOutlet NSSegmentedControl* fAddRemoveControl;

View File

@@ -21,7 +21,7 @@ typedef NS_ENUM(NSUInteger, LevelButtonLevel) {
static NSTimeInterval const kUpdateSeconds = 0.75;
@interface MessageWindowController ()<NSWindowRestoration>
@interface MessageWindowController ()<NSWindowRestoration, NSMenuItemValidation>
@property(nonatomic) IBOutlet NSTableView* fMessageTable;

View File

@@ -6,7 +6,7 @@
#include <libtransmission/transmission.h>
@interface StatusBarController : NSViewController
@interface StatusBarController : NSViewController<NSMenuItemValidation>
- (instancetype)initWithLib:(tr_session*)lib;

View File

@@ -8,7 +8,7 @@
extern CGFloat const kGroupSeparatorHeight;
@interface TorrentTableView : NSOutlineView<NSOutlineViewDelegate, NSAnimationDelegate, NSPopoverDelegate>
@interface TorrentTableView : NSOutlineView<NSOutlineViewDelegate, NSAnimationDelegate, NSPopoverDelegate, NSMenuItemValidation>
- (void)reloadVisibleRows;

View File

@@ -6,7 +6,7 @@
@class Torrent;
@interface TrackerTableView : NSTableView
@interface TrackerTableView : NSTableView<NSMenuItemValidation>
@property(nonatomic, weak) Torrent* torrent;
@property(nonatomic, weak) NSArray* trackers;

View File

@@ -5,7 +5,7 @@
#import "URLSheetWindowController.h"
#import "Controller.h"
@interface URLSheetWindowController ()
@interface URLSheetWindowController ()<NSControlTextEditingDelegate>
@property(nonatomic) IBOutlet NSTextField* fLabelField;
@property(nonatomic) IBOutlet NSTextField* fTextField;

View File

@@ -4,7 +4,7 @@
#import <AppKit/AppKit.h>
@interface WebSeedTableView : NSTableView
@interface WebSeedTableView : NSTableView<NSMenuItemValidation>
@property(nonatomic, weak) NSArray<NSDictionary*>* webSeeds;