diff options
author | Damiano Galassi <[email protected]> | 2019-10-13 15:12:48 +0200 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2019-10-13 15:12:48 +0200 |
commit | c42ca6224113f09a51f72b4775518f229804ad29 (patch) | |
tree | 2a96c173982794e3533cbce057498adeb9711c24 /macosx/HBController.m | |
parent | be83ac213ae7f51df2f02fd2ffda2176dc2ccce2 (diff) |
MacGui: fix deprecations warnings.
Diffstat (limited to 'macosx/HBController.m')
-rw-r--r-- | macosx/HBController.m | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/macosx/HBController.m b/macosx/HBController.m index 3c75b1ec7..6938332d4 100644 --- a/macosx/HBController.m +++ b/macosx/HBController.m @@ -225,8 +225,8 @@ static void *HBControllerLogLevelContext = &HBControllerLogLevelContext; [self updateProgress]; // Register HBController's Window as a receiver for files/folders drag & drop operations - [self.window registerForDraggedTypes:@[NSFilenamesPboardType]]; - [fMainTabView registerForDraggedTypes:@[NSFilenamesPboardType]]; + [self.window registerForDraggedTypes:@[(NSString *)kUTTypeFileURL]]; + [fMainTabView registerForDraggedTypes:@[(NSString *)kUTTypeFileURL]]; fPresetsView = [[HBPresetsViewController alloc] initWithPresetManager:presetManager]; fPresetsView.delegate = self; @@ -570,11 +570,11 @@ static void *HBControllerLogLevelContext = &HBControllerLogLevelContext; { if ([menuItem.representedObject isEqualTo:self.currentPreset] && self.edited == NO) { - menuItem.state = NSOnState; + menuItem.state = NSControlStateValueOn; } else { - menuItem.state = NSOffState; + menuItem.state = NSControlStateValueOff; } return (self.job != nil); } |