mamburu: Made clicking on pop-up menu items of path control inside spotlight panel work
This commit is contained in:
parent
ca0b43de0f
commit
97f6e8b472
3 changed files with 336 additions and 2225 deletions
File diff suppressed because it is too large
Load diff
|
@ -23,6 +23,8 @@
|
||||||
- (IBAction)addToPlaylist:(id)sender;
|
- (IBAction)addToPlaylist:(id)sender;
|
||||||
- (IBAction)toggleWindow:(id)sender;
|
- (IBAction)toggleWindow:(id)sender;
|
||||||
|
|
||||||
|
- (IBAction)pathComponentClicked:(id)sender;
|
||||||
|
|
||||||
- (void)performSearch;
|
- (void)performSearch;
|
||||||
- (NSPredicate *)processSearchString;
|
- (NSPredicate *)processSearchString;
|
||||||
|
|
||||||
|
|
|
@ -283,6 +283,16 @@ static NSPredicate * musicOnlyPredicate = nil;
|
||||||
[self.query enableUpdates];
|
[self.query enableUpdates];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If pop-up styled NSPathControl is set to /a/b/c path, then selecting either 'a' or 'b'
|
||||||
|
// from its pop-up menu won't do anything by default (while we'd like it to select /a and
|
||||||
|
// /a/b respectively). So here we set url of NSPathControl to be that of clicked cell.
|
||||||
|
- (IBAction)pathComponentClicked:(id)sender
|
||||||
|
{
|
||||||
|
NSPathComponentCell *pcc = [sender clickedPathComponentCell];
|
||||||
|
DLog(@"%@", pcc);
|
||||||
|
[sender setURL:[pcc URL]];
|
||||||
|
}
|
||||||
|
|
||||||
#pragma mark NSMetadataQuery delegate methods
|
#pragma mark NSMetadataQuery delegate methods
|
||||||
|
|
||||||
// replace the NSMetadataItem with a PlaylistEntry
|
// replace the NSMetadataItem with a PlaylistEntry
|
||||||
|
|
Loading…
Reference in a new issue