summaryrefslogtreecommitdiffstats
path: root/macosx/HBAppDelegate.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2016-01-09 10:03:12 +0100
committerDamiano Galassi <[email protected]>2016-01-09 10:03:12 +0100
commite7da0b5d45127c6db240bb6cfe5920e6ea6808d4 (patch)
tree2c169eeb2306fe686d4cca0cfe17fc9da17ada12 /macosx/HBAppDelegate.m
parent6cedf950197617427ad264aad16a12a8989e119b (diff)
MacGui: added some error logs to the queue.
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;