[NSTableView] What is the purpose of highlightSelectionInClipRect:????
[NSTableView] What is the purpose of highlightSelectionInClipRect:????
- Subject: [NSTableView] What is the purpose of highlightSelectionInClipRect:????
- From: email@hidden
- Date: Sat, 16 Nov 2002 13:37:54 +0100
According to the documentation:
- (void)highlightSelectionInClipRect:(NSRect)clipRect
Highlights the region of the receiver in clipRect. This method is
invoked before drawRow:clipRect:.
Subclasses can override this method to change the manner in which they
highlight selections.
With some code:
- (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?
_______________________________________________
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.