Hello,
I am trying to understand the meaning of clipRect in a table view embedded inside a scroll view. I assumed that the clip rect is the visible portion of the table view. This means that the width of the rect should not change as long as the table view is not resized, but upon monitoring the width of the clip rect in the following code, I noticed that the width changes as I move the horizontal scroll bar left to right. The width value becomes normal when I move the vertical scroll bar up and down.
Can someone explain this? Thanks in advance.
- (void)drawRow:(NSInteger)rowIndex clipRect:(NSRect)clipRect {
NSLog(@"drawRow Clip Rect Width:%f Height:%f", clipRect.size.width, clipRect.size.height);
[super drawRow:rowIndex clipRect:clipRect];
}