summaryrefslogtreecommitdiffstats
path: root/macosx/HBController.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2019-10-13 15:12:48 +0200
committerDamiano Galassi <[email protected]>2019-10-13 15:12:48 +0200
commitc42ca6224113f09a51f72b4775518f229804ad29 (patch)
tree2a96c173982794e3533cbce057498adeb9711c24 /macosx/HBController.m
parentbe83ac213ae7f51df2f02fd2ffda2176dc2ccce2 (diff)
MacGui: fix deprecations warnings.
Diffstat (limited to 'macosx/HBController.m')
-rw-r--r--macosx/HBController.m8
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);
}