Iconselection view now shows available icons

This commit is contained in:
michael starke
2013-07-28 14:14:32 +02:00
parent 07dae46b4c
commit 514477d6fc
7 changed files with 228 additions and 500 deletions

View File

@@ -10,7 +10,6 @@
#import "MPIconHelper.h"
@interface MPIconSelectViewController ()
@end
@implementation MPIconSelectViewController
@@ -20,19 +19,20 @@
return [self initWithNibName:@"IconSelection" bundle:nil];
}
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
}
return self;
}
- (void)didLoadView {
//[[self.imageButton cell] setBackgroundStyle:NSBackgroundStyleLowered];
[self.iconCollectionView setBackgroundColors:@[[NSColor clearColor]]];
[self.iconCollectionView setSelectable:YES];
[self.iconCollectionView setAllowsMultipleSelection:NO];
[self.iconCollectionView setContent:[MPIconHelper availableIcons]];
}
- (IBAction)useDefault:(id)sender {