Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59c2011 commit a9b5e44Copy full SHA for a9b5e44
1 file changed
imageoptim/FilesQueue.m
@@ -7,6 +7,7 @@
7
#import "FilesQueue.h"
8
9
#import "Workers/DirWorker.h"
10
+#import "RevealButtonCell.h"
11
12
@interface FilesQueue ()
13
@@ -182,6 +183,16 @@ - (NSString *)tableView:(NSTableView *)aTableView toolTipForCell:(NSCell *)aCell
182
183
if (row < (signed)[objs count])
184
{
185
File *f = [objs objectAtIndex:row];
186
+
187
+ if ([aCell isKindOfClass:[RevealButtonCell class]]) {
188
+ NSRect infoButtonRect = [((RevealButtonCell*)aCell) infoButtonRectForBounds:*rect];
189
190
+ BOOL mouseIsInside = NSMouseInRect(mouseLocation, infoButtonRect, [aTableView isFlipped]);
191
+ if (mouseIsInside) {
192
+ return [f filePath];
193
+ }
194
195
196
return [f statusText];
197
}
198
return nil;
0 commit comments