Enhancement on selection behavior

This commit is contained in:
michael starke
2013-02-26 12:20:47 +01:00
parent edaf4aa30d
commit 2e8d35a432
10 changed files with 48 additions and 13 deletions

View File

@@ -12,6 +12,9 @@
+ (NSImage *)icon:(MPIconType)type {
NSDictionary *icons = [MPIconHelper availableIcons];
if(type >= [icons count]) {
return [NSImage imageNamed:NSImageNameActionTemplate];
}
NSString *imageName = icons[@(type)];
return [[NSBundle mainBundle] imageForResource:imageName];
}