mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 12:52:21 +00:00
Expermintes with NSCopying and Iconselection window
This commit is contained in:
@@ -30,7 +30,16 @@
|
||||
}
|
||||
|
||||
- (void)didLoadView {
|
||||
[self.iconCollectionView setSelectable:YES];
|
||||
[self.iconCollectionView setAllowsMultipleSelection:NO];
|
||||
[self.iconCollectionView setContent:[MPIconHelper availableIcons]];
|
||||
}
|
||||
|
||||
- (IBAction)useDefault:(id)sender {
|
||||
SEL hidePopup = @selector(hideImagePopup:);
|
||||
id target = [[NSApplication sharedApplication] targetForAction:hidePopup to:nil from:self];
|
||||
if( target ) {
|
||||
[target performSelector:hidePopup withObject:self];
|
||||
}
|
||||
}
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user