Revision: 12165
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=12165&view=rev
Author:   amaxwell
Date:     2007-12-31 17:34:25 -0800 (Mon, 31 Dec 2007)

Log Message:
-----------
Fixing cellSize apparently fixed the expansion tooltip problem as well.

Modified Paths:
--------------
    trunk/bibdesk/BDSKTextWithIconCell.m

Modified: trunk/bibdesk/BDSKTextWithIconCell.m
===================================================================
--- trunk/bibdesk/BDSKTextWithIconCell.m        2007-12-31 23:44:38 UTC (rev 
12164)
+++ trunk/bibdesk/BDSKTextWithIconCell.m        2008-01-01 01:34:25 UTC (rev 
12165)
@@ -281,24 +281,6 @@
     [self drawIconWithFrame:imageRect inView:controlView];
 }
 
-// default rect on 10.5 is very wide, and it shows the expansion tooltip even 
for cells that aren't truncated
-- (NSRect)expansionFrameWithFrame:(NSRect)aRect inView:(NSView *)controlView
-{
-    _calculateDrawingRectsAndSizes;
-    
-    NSDivideRect(textRect, &ignored, &textRect, SIZE_OF_TEXT_FIELD_BORDER, 
NSMinXEdge);
-    textRect = NSInsetRect(textRect, 1.0f, 0.0);
-    
-    NSAttributedString *label = [self attributedStringValue];
-    NSRect expansionRect = [super expansionFrameWithFrame:aRect 
inView:controlView];
-    // if it all fits in the textRect, we don't need the expansion tooltip
-    if ([label size].width <= NSWidth(textRect))
-        expansionRect = NSZeroRect;
-    else
-        expansionRect.size.width = [label size].width;
-    return expansionRect;
-}
-
 - (BOOL)trackMouse:(NSEvent *)theEvent inRect:(NSRect)cellFrame ofView:(NSView 
*)controlView untilMouseUp:(BOOL)flag;
 {
     return [super trackMouse:theEvent inRect:cellFrame ofView:controlView 
untilMouseUp:flag];


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bibdesk-commit mailing list
Bibdesk-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to