summaryrefslogtreecommitdiffstats
path: root/macosx/HBAppDelegate.m
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/HBAppDelegate.m')
-rw-r--r--macosx/HBAppDelegate.m10
1 files changed, 5 insertions, 5 deletions
diff --git a/macosx/HBAppDelegate.m b/macosx/HBAppDelegate.m
index 6c21b1937..0dc8030b9 100644
--- a/macosx/HBAppDelegate.m
+++ b/macosx/HBAppDelegate.m
@@ -302,17 +302,17 @@
__block NSUInteger i = 0;
__block BOOL builtInEnded = NO;
- [self.presetsManager.root enumerateObjectsUsingBlock:^(id obj, NSIndexPath *idx, BOOL *stop)
+ [self.presetsManager.root enumerateObjectsUsingBlock:^(HBPreset *obj, NSIndexPath *idx, BOOL *stop)
{
if (idx.length)
{
NSMenuItem *item = [[NSMenuItem alloc] init];
- item.title = [obj name];
+ item.title = obj.name;
item.tag = i++;
// Set an action only to the actual presets,
// not on the folders.
- if ([obj isLeaf])
+ if (obj.isLeaf)
{
item.action = @selector(selectPresetFromMenu:);
item.representedObject = obj;
@@ -320,12 +320,12 @@
// Make the default preset font bold.
if ([obj isEqualTo:self.presetsManager.defaultPreset])
{
- NSAttributedString *newTitle = [[NSAttributedString alloc] initWithString:[obj name]
+ NSAttributedString *newTitle = [[NSAttributedString alloc] initWithString:obj.name
attributes:@{NSFontAttributeName: [NSFont boldSystemFontOfSize:14]}];
[item setAttributedTitle:newTitle];
}
// Add a separator line after the last builtIn preset
- if ([obj isBuiltIn] == NO && builtInEnded == NO)
+ if (obj.isBuiltIn == NO && builtInEnded == NO)
{
[self.presetsMenu addItem:[NSMenuItem separatorItem]];
builtInEnded = YES;