Add some warnings and excessive Lion checks

This commit is contained in:
Mitchell Livingston
2011-08-27 21:32:45 +00:00
parent 75d9ac88f2
commit ee34f2a137
2 changed files with 12 additions and 4 deletions
+1
View File
@@ -469,6 +469,7 @@
#warning image should use new gear
NSString * actionImageString;
if (fMouseDownActionButton)
#warning we can get rid of the on 10.7
actionImageString = @"ActionOn.png";
else if (!fTracking && fHoverAction)
actionImageString = @"ActionHover.png";
+11 -4
View File
@@ -72,6 +72,7 @@
fMouseControlRow = -1;
fMouseRevealRow = -1;
fMouseActionRow = -1;
#warning we can get rid of the on 10.7
fActionPushedRow = -1;
fActionPopoverShown = NO;
@@ -411,14 +412,20 @@
//avoid weird behavior when showing menu by doing this after mouse down
if (row != -1 && fMouseActionRow == row)
{
fActionPushedRow = row;
[self setNeedsDisplayInRect: [self rectOfRow: row]]; //ensure button is pushed down
if (![NSApp isOnLionOrBetter])
{
fActionPushedRow = row;
[self setNeedsDisplayInRect: [self rectOfRow: row]]; //ensure button is pushed down
}
#warning maybe make appear on mouse down
[self displayTorrentActionPopoverForEvent: event];
fActionPushedRow = -1;
[self setNeedsDisplayInRect: [self rectOfRow: row]];
if (![NSApp isOnLionOrBetter])
{
fActionPushedRow = -1;
[self setNeedsDisplayInRect: [self rectOfRow: row]];
}
}
else if (!pushed && [event clickCount] == 2) //double click
{