Re: Preventing NSTableView hilighting
Re: Preventing NSTableView hilighting
- Subject: Re: Preventing NSTableView hilighting
- From: Arthur Schuster <email@hidden>
- Date: Tue, 18 May 2004 17:51:57 +0200
I implemented that method with just an NSLog() and although the method
was getting called at the correct time, something else was drawing the
row highlighting.
Hmm...
That's because it works in my App. But it could be that you mean some
other highlighting: I tried to imitate Finder's fading blue selection
highlighting in its sidebar. I'm drawing this in a subclassed
NSTabeView's
- (void)highlightSelectionInClipRect:(NSRect)clipRect;
But as NSCell kept painting over my highlight (this is the "highlight"
I thought you were referring to) I also had to subclass the before
mentioned private method.
Hope this helps.
Arthur
How do I disable hilighting of cells and rows in an NSTableView? I
still want cells/rows to be selected and all that entails - I just
don't want the highlighting to be drawn.
I've tried subclassing NSTableView and NSCell to prevent drawing and
to
catch the setSelection style methods but have had no luck.
Is there an obvious way that I'm missing?
There is a hidden (private) method of NSCell which does this drawing
(10.3.3):
- (void)_drawHighlightWithFrame:(NSRect)frame inView:(NSView *)view;
But be careful when using private methods...
Arthur
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.