Set NSPopUpButton to track the mouse events untile the mouse is inside the cellFrame and not until mouseUp

This commit is contained in:
AlessandroSangiuliano 2015-11-29 11:50:51 +01:00
parent d18e92153e
commit 21f8cddbf9

15
NSPopUpButton+Rik.m Normal file
View 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