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

@@ -32,9 +32,7 @@ NSString *const _MPOutlinveViewHeaderViewIdentifier = @"HeaderCell";
}
else {
view = [outlineView makeViewWithIdentifier:_MPOutlineViewDataViewIdentifier owner:self];
NSDictionary *availableIcons = [MPIconHelper availableIcons];
NSInteger randomIndex = rand() % [availableIcons count];
NSImage *icon = [MPIconHelper icon:(MPIconType)randomIndex];
NSImage *icon = [MPIconHelper icon:(MPIconType)[group image]];
[view.imageView setImage:icon];
[view.textField setStringValue:[group name]];