Autorelease tracking area
This commit is contained in:
parent
e44f655503
commit
06a550b412
1 changed files with 2 additions and 2 deletions
|
@ -58,11 +58,11 @@ const CGFloat kVerticalTitleMargin = 2;
|
||||||
[self updateDimensions];
|
[self updateDimensions];
|
||||||
|
|
||||||
// Add NSTrackingArea for listening to mouseEnter and mouseExit events
|
// Add NSTrackingArea for listening to mouseEnter and mouseExit events
|
||||||
NSTrackingArea* trackingArea = [[NSTrackingArea alloc]
|
auto trackingArea = [[[NSTrackingArea alloc]
|
||||||
initWithRect:[self bounds]
|
initWithRect:[self bounds]
|
||||||
options:NSTrackingMouseEnteredAndExited | NSTrackingActiveAlways
|
options:NSTrackingMouseEnteredAndExited | NSTrackingActiveAlways
|
||||||
owner:self
|
owner:self
|
||||||
userInfo:nil];
|
userInfo:nil] autorelease];
|
||||||
[self addTrackingArea:trackingArea];
|
[self addTrackingArea:trackingArea];
|
||||||
}
|
}
|
||||||
return self;
|
return self;
|
||||||
|
|
Loading…
Reference in a new issue