summaryrefslogtreecommitdiffstats
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
parentbe83ac213ae7f51df2f02fd2ffda2176dc2ccce2 (diff)
MacGui: fix deprecations warnings.
-rw-r--r--macosx/HBAppDelegate.h1
-rw-r--r--macosx/HBController.m8
2 files changed, 4 insertions, 5 deletions
diff --git a/macosx/HBAppDelegate.h b/macosx/HBAppDelegate.h
index 3762c62e9..ef642ee95 100644
--- a/macosx/HBAppDelegate.h
+++ b/macosx/HBAppDelegate.h
@@ -20,5 +20,4 @@
- (void)openJob:(HBJob *)job completionHandler:(void (^)(BOOL result))handler;
-
@end
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);
}