This commit is contained in:
Kevin Sawicki 2017-06-28 12:13:12 -07:00
parent 70544440f9
commit d53f07cc20

View file

@ -58,11 +58,11 @@ const CGFloat kVerticalTitleMargin = 2;
[self updateDimensions];
// Add NSTrackingArea for listening to mouseEnter and mouseExit events
int opts = (NSTrackingMouseEnteredAndExited | NSTrackingActiveAlways);
NSTrackingArea* trackingArea = [[NSTrackingArea alloc] initWithRect:[self bounds]
options:opts
owner:self
userInfo:nil];
NSTrackingArea* trackingArea = [[NSTrackingArea alloc]
initWithRect:[self bounds]
options:NSTrackingMouseEnteredAndExited | NSTrackingActiveAlways
owner:self
userInfo:nil];
[self addTrackingArea:trackingArea];
}
return self;