Revision: 12376
http://bibdesk.svn.sourceforge.net/bibdesk/?rev=12376&view=rev
Author: amaxwell
Date: 2008-01-08 16:46:27 -0800 (Tue, 08 Jan 2008)
Log Message:
-----------
Only show arrow for mouseEntered: events if the app is active.
Modified Paths:
--------------
trunk/bibdesk_vendorsrc/amaxwell/FileView/FileView.m
Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FileView.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FileView.m 2008-01-09
00:33:20 UTC (rev 12375)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FileView.m 2008-01-09
00:46:27 UTC (rev 12376)
@@ -1426,7 +1426,7 @@
- (void)_showArrowsForIconAtIndex:(NSUInteger)anIndex
{
NSUInteger r, c;
-
+
if ([self _getGridRow:&r column:&c ofIndex:anIndex]) {
FVIcon *anIcon = [self _cachedIconForURL:[self
iconURLAtIndex:anIndex]];
@@ -1473,7 +1473,8 @@
const NSTrackingRectTag tag = [event trackingNumber];
NSUInteger anIndex;
- if (CFDictionaryGetValueIfPresent(_trackingRectMap, (const void *)tag,
(const void **)&anIndex))
+ // Finder doesn't show buttons unless it's the front app. If Finder is
the front app, it shows them for any window, regardless of main/key state, so
we'll do the same.
+ if ([NSApp isActive] && CFDictionaryGetValueIfPresent(_trackingRectMap,
(const void *)tag, (const void **)&anIndex))
[self _showArrowsForIconAtIndex:anIndex];
// !!! calling this before adding buttons seems to disable the tooltip on
10.4; what does it do on 10.5?
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit