mirror of
https://github.com/darlinghq/darling-rik-theme.git
synced 2024-11-23 03:59:45 +00:00
Set NSPopUpButton to track the mouse events untile the mouse is inside the cellFrame and not until mouseUp
This commit is contained in:
parent
d18e92153e
commit
21f8cddbf9
15
NSPopUpButton+Rik.m
Normal file
15
NSPopUpButton+Rik.m
Normal file
@ -0,0 +1,15 @@
|
||||
#import "Rik.h"
|
||||
#import <AppKit/NSPopUpButton.h>
|
||||
|
||||
@implementation NSPopUpButton (RikTheme)
|
||||
|
||||
- (void) mouseDown: (NSEvent*)theEvent
|
||||
{
|
||||
[_cell trackMouse: theEvent
|
||||
inRect: [self bounds]
|
||||
ofView: self
|
||||
untilMouseUp: NO];
|
||||
}
|
||||
|
||||
@end
|
||||
|
Loading…
Reference in New Issue
Block a user