Autorelease tracking area
This commit is contained in:
parent
7d10bf229d
commit
de0daa2481
1 changed files with 4 additions and 5 deletions
|
@ -119,11 +119,10 @@ bool ScopedDisableResize::disable_resize_ = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)updateTrackingAreas {
|
- (void)updateTrackingAreas {
|
||||||
NSTrackingArea* const trackingArea =
|
auto trackingArea = [[[NSTrackingArea alloc] initWithRect:NSZeroRect
|
||||||
[[NSTrackingArea alloc] initWithRect:NSZeroRect
|
options:NSTrackingMouseEnteredAndExited | NSTrackingActiveAlways | NSTrackingInVisibleRect
|
||||||
options:NSTrackingMouseEnteredAndExited | NSTrackingActiveAlways | NSTrackingInVisibleRect
|
owner:self
|
||||||
owner:self
|
userInfo:nil] autorelease];
|
||||||
userInfo:nil];
|
|
||||||
[self addTrackingArea:trackingArea];
|
[self addTrackingArea:trackingArea];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue