IconSelectionView now can be used to set default icons. Setting other Icons is broken for now. Setting custom icons doesn't work at all.

This commit is contained in:
michael starke
2013-12-01 02:29:37 +01:00
parent 36e493101a
commit 1a6d5114b9
10 changed files with 227 additions and 857 deletions

View File

@@ -8,11 +8,20 @@
#import "MPViewController.h"
extern NSInteger const kMPDefaultIcon;
@interface MPIconSelectViewController : MPViewController <NSCollectionViewDelegate>
/**
* Is the selected Icon, kMPDefaultIcon if the default icons was selected
*/
@property (nonatomic, assign) NSInteger selectedIcon;
@property (weak) IBOutlet NSCollectionView *iconCollectionView;
@property (weak) IBOutlet NSButton *imageButton;
@property (weak) NSPopover *popover;
- (void)reset;
- (IBAction)useDefault:(id)sender;
@end