Revision: 18255
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=18255&view=rev
Author:   hofman
Date:     2011-11-28 10:48:06 +0000 (Mon, 28 Nov 2011)
Log Message:
-----------
override interior cell drawing rather than calling it with a different frame, 
because the control may call it directly

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

Modified: trunk/bibdesk/BDSKAddressTextFieldCell.m
===================================================================
--- trunk/bibdesk/BDSKAddressTextFieldCell.m    2011-11-28 10:34:10 UTC (rev 
18254)
+++ trunk/bibdesk/BDSKAddressTextFieldCell.m    2011-11-28 10:48:06 UTC (rev 
18255)
@@ -73,7 +73,7 @@
        [[NSColor whiteColor] set];
        [[NSBezierPath bezierPathWithRoundedRect:NSInsetRect(cellFrame, 1.0, 
2.0) xRadius:2.6 yRadius:2.6] fill];
        
-    [self drawInteriorWithFrame:outlineRect inView:controlView];
+    [self drawInteriorWithFrame:cellFrame inView:controlView];
     
        if ([self showsFirstResponder]) {       
                [NSGraphicsContext saveGraphicsState];
@@ -83,6 +83,12 @@
        }
 }
 
+- (void)drawInteriorWithFrame:(NSRect)cellFrame inView:(NSView *)controlView {
+       NSRect ignored;
+    NSDivideRect(cellFrame, &ignored, &cellFrame, 1.0, [controlView isFlipped] 
? NSMaxYEdge : NSMinYEdge);
+    [super drawInteriorWithFrame:cellFrame inView:controlView];
+}
+
 - (void)editWithFrame:(NSRect)aRect inView:(NSView *)controlView 
editor:(NSText *)textObj delegate:(id)anObject event:(NSEvent *)theEvent {
        NSRect ignored;
     NSDivideRect(aRect, &ignored, &aRect, 1.0, [controlView isFlipped] ? 
NSMaxYEdge : NSMinYEdge);

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


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to