On 8 Jan 2010, at 00:35, Andreas K?nner <[email protected]> wrote:
> 
> I want to change the default dark blue color for selected columns in 
> NSTableView to a light gray. Is this possible at all? 

In order make selected cells light blue I use a subclass of NSTextFieldCell 
which has only one method:

- (NSColor *)highlightColorWithFrame:(NSRect)cellFrame inView:(NSView 
*)controlView
{
        NSColor *su = [ super highlightColorWithFrame: cellFrame inView: 
controlView ];
        if ( su == [ NSColor alternateSelectedControlColor ] )
                su = [ NSColor selectedTextBackgroundColor ];
        return su;
}

This kind of works, but leaves a thin dark blue line on top, and a thick dark 
blue line at the right of the selected cell.
Does anybody knows how to get rid of these artifacts?

Kind regards,

Gerriet.

_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to