diff --git a/Source/GSThemeDrawing.m b/Source/GSThemeDrawing.m index dce5f46346..5b8c804417 100644 --- a/Source/GSThemeDrawing.m +++ b/Source/GSThemeDrawing.m @@ -1347,17 +1347,15 @@ - (void) drawTitleForMenuItemCell: (NSMenuItemCell *)cell // the app menu. NSString *menuTitle = cell.menuItem.title; - NSString *appTitle = [NSBundle.mainBundle.localizedInfoDictionary objectForKey: @"ApplicationName"]; + NSString *appTitle = [[[NSBundle mainBundle] localizedInfoDictionary] objectForKey: @"ApplicationName"]; NSMutableString *mutableAppTitle = [NSMutableString stringWithCapacity: appTitle.length + 5]; [mutableAppTitle appendString: appTitle]; [mutableAppTitle appendString: @" "]; - NSMutableDictionary *attrs = NSMutableDictionary.dictionary; - - attrs[NSFontAttributeName] = [NSFont boldSystemFontOfSize: 0.0]; - + NSMutableDictionary *attrs = [NSMutableDictionary dictionaryWithObject: [NSFont boldSystemFontOfSize: 0.0] forKey: NSFontAttributeName]; + NSAttributedString *boldTitle = [[NSAttributedString alloc] initWithString: mutableAppTitle attributes: attrs];