Re: [NSTableView] What is the purpose of highlightSelectionInClipRect:????
Re: [NSTableView] What is the purpose of highlightSelectionInClipRect:????
- Subject: Re: [NSTableView] What is the purpose of highlightSelectionInClipRect:????
- From: email@hidden
- Date: Sun, 17 Nov 2002 14:10:11 +0100
On dimanche, novembre 17, 2002, at 02:08 AM, Scott Anguish wrote:
On Saturday, November 16, 2002, at 07:37 AM, email@hidden wrote:
- (void)highlightSelectionInClipRect:(NSRect)clipRect
{
[[NSColor redColor] set];
NSRectFill(clipRect);
}
what you see is that the WHOLE NSTableView content is drawn in red.
Even with no selection.
So what is the real purpose of highlightSelectionInClipRect?
I think its the stated purpose. it's passing you the rectangle to
clip the highlight to, not the highlight selection rect specifically.
Hum, I still don't get it.
If I subclass this method for a NSOutlineView and do nothing in it,
then the intercell space is not highlighted.
But the clipRect I'm sent is the whole NSOutlineView frame.
I would have thought this method was used to draw the highlighted
rectangle selection. And that the ClipRect was the rectangle of the
selection if there's any.
What I'm trying to do is to prevent the drawing of the selection rect
when an item is selected.
_______________________________________________
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.