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

@@ -125,7 +125,7 @@ NSString *const _MPTAbleSecurCellView = @"PasswordCell";
- (void)didLoadView {
[[self view] setWantsLayer:YES];
[self _hideFilterBarAnimated];
[_bottomBar setBorderType:HNHBorderTop];
[self.addEntryButton setAction:[MPActionHelper actionOfType:MPActionAddEntry]];
@@ -192,7 +192,6 @@ NSString *const _MPTAbleSecurCellView = @"PasswordCell";
[self _setupHeaderMenu];
[parentColumn setHidden:YES];
}
- (NSResponder *)reconmendedFirstResponder {
@@ -676,7 +675,13 @@ NSString *const _MPTAbleSecurCellView = @"PasswordCell";
KPKEntry *selectedEntry = [self _clickedOrSelectedEntry];
if(selectedEntry && [selectedEntry.url length] > 0) {
NSURL *webURL = [NSURL URLWithString:selectedEntry.url];
NSString *scheme = [webURL scheme];
if(!scheme) {
webURL = [NSURL URLWithString:[NSString stringWithFormat:@"http://%@", selectedEntry.url]];
}
[[NSWorkspace sharedWorkspace] openURL:webURL];
/* Add custom browser support */
//[[NSWorkspace sharedWorkspace] openURLs:@[webURL] withAppBundleIdentifier:@"org.mozilla.firefox" options:NSWorkspaceLaunchAsync additionalEventParamDescriptor:nil launchIdentifiers:NULL];
}
}