Ignore:
Timestamp:
03/03/08 08:59:32 (13 years ago)
Author:
Nicholas Riley
Message:

Fragile hack to determine whether we should draw the highlighted row as active.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ICeCoffEE/ICeCoffEE/ICeCoffEEInvertingTextFieldCell.m

    r428 r432  
    88
    99#import "ICeCoffEEInvertingTextFieldCell.h"
     10#import "ICeCoffEEMenuOutlineView.h"
    1011
    1112
     
    1920- (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView;
    2021{
    21     if ([self isHighlighted] && [[controlView window] firstResponder] == controlView && [[controlView window] isKeyWindow]) {
     22    // XXX note cast to ICeCoffEEMenuOutlineView *; this is not general-purpose
     23    if ([self isHighlighted] && [(ICeCoffEEMenuOutlineView *)controlView shouldUseActiveHighlight]) {
    2224        NSMutableAttributedString *astr = [[self attributedStringValue] mutableCopy];
    2325        unsigned location = 0, length = [astr length];
Note: See TracChangeset for help on using the changeset viewer.