Revision: 15236
http://bibdesk.svn.sourceforge.net/bibdesk/?rev=15236&view=rev
Author: hofman
Date: 2009-04-29 15:06:45 +0000 (Wed, 29 Apr 2009)
Log Message:
-----------
Offset text in parent group cells on Tiger by extra row height
Modified Paths:
--------------
trunk/bibdesk/BDSKGroupOutlineView.m
Modified: trunk/bibdesk/BDSKGroupOutlineView.m
===================================================================
--- trunk/bibdesk/BDSKGroupOutlineView.m 2009-04-29 14:46:19 UTC (rev
15235)
+++ trunk/bibdesk/BDSKGroupOutlineView.m 2009-04-29 15:06:45 UTC (rev
15236)
@@ -49,6 +49,11 @@
#import "BDSKGroupCell.h"
#import "NSLayoutManager_BDSKExtensions.h"
+
+...@interface BDSKParentGroupCell : NSTextFieldCell
+...@end
+
+
@implementation BDSKGroupOutlineView
- (void)dealloc
@@ -83,7 +88,7 @@
- (NSTextFieldCell *)parentCell {
if (parentCell == nil) {
- parentCell = [[NSTextFieldCell alloc] init];
+ parentCell = [[BDSKParentGroupCell alloc] init];
[parentCell setTextColor:[NSColor disabledControlTextColor]];
[parentCell setFont:[[NSFontManager sharedFontManager]
convertFont:[self font] toHaveTrait:NSBoldFontMask]];
}
@@ -287,3 +292,16 @@
}
@end
+
+
+...@implementation BDSKParentGroupCell
+
+- (void)drawInteriorWithFrame:(NSRect)cellFrame inView:(NSView *)controlView {
+ if (floor(NSAppKitVersionNumber) <= NSAppKitVersionNumber10_4) {
+ NSRect ignored;
+ NSDivideRect(cellFrame, &ignored, &cellFrame, 2.0, NSMinYEdge);
+ }
+ [super drawInteriorWithFrame:cellFrame inView:controlView];
+}
+
+...@end
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit