tweaks to showing priority selector

This commit is contained in:
Mitchell Livingston
2008-01-12 03:53:41 +00:00
parent a0578f408b
commit 0b3739dace
2 changed files with 7 additions and 5 deletions

View File

@@ -90,14 +90,13 @@
{
NSTrackingAreaOptions options = NSTrackingEnabledDuringMouseDrag | NSTrackingMouseEnteredAndExited | NSTrackingActiveAlways;
BOOL mouseIsInside = NSMouseInRect(mouseLocation, cellFrame, [controlView isFlipped]);
if (mouseIsInside)
if (NSMouseInRect(mouseLocation, cellFrame, [controlView isFlipped]))
{
options |= NSTrackingAssumeInside;
[controlView setNeedsDisplayInRect:cellFrame];
[controlView setNeedsDisplayInRect: cellFrame];
}
NSTrackingArea *area = [[NSTrackingArea alloc] initWithRect: cellFrame options: options owner: controlView userInfo: userInfo];
NSTrackingArea * area = [[NSTrackingArea alloc] initWithRect: cellFrame options: options owner: controlView userInfo: userInfo];
[controlView addTrackingArea: area];
[area release];
}