Changeset 3777 for trunk/Views
- Timestamp:
- 02/06/08 09:04:24 (10 months ago)
- Files:
-
- trunk/Views/JVSideOutlineView.m (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Views/JVSideOutlineView.m
r3259 r3777 11 11 } 12 12 13 @interface NSOutlineView (NSOutlineViewPrivate) 14 - (NSColor *) _highlightColorForCell:(NSCell *) cell; 15 - (void) _highlightRow:(int) row clipRect:(NSRect) clip; 16 @end 17 13 18 @implementation JVSideOutlineView 14 19 - (NSColor *) _highlightColorForCell:(NSCell *) cell { 20 if( floor( NSAppKitVersionNumber ) > NSAppKitVersionNumber10_4 && [super respondsToSelector:_cmd] ) 21 return [super _highlightColorForCell:cell]; 22 15 23 // return nil to prevent normal selection drawing 16 24 return nil; … … 18 26 19 27 - (void) _highlightRow:(int) row clipRect:(NSRect) clip { 28 if( floor( NSAppKitVersionNumber ) > NSAppKitVersionNumber10_4 && [super respondsToSelector:_cmd] ) 29 return [super _highlightRow:row clipRect:clip]; 30 20 31 NSRect highlight = [self rectOfRow:row]; 21 32 … … 42 53 43 54 - (void) drawBackgroundInClipRect:(NSRect) clipRect { 55 if( floor( NSAppKitVersionNumber ) > NSAppKitVersionNumber10_4 && [super respondsToSelector:_cmd] ) 56 return [super drawBackgroundInClipRect:clipRect]; 57 44 58 static NSColor *backgroundColor = nil; 45 59 if( ! backgroundColor ) 46 60 backgroundColor = [[NSColor colorWithCalibratedRed:( 229. / 255. ) green:( 237. / 255. ) blue:( 247. / 255. ) alpha:1.] retain]; 61 47 62 [backgroundColor set]; 48 63 NSRectFill( clipRect );
