Strange problem drawing a custom grid in NSTableView
Strange problem drawing a custom grid in NSTableView
- Subject: Strange problem drawing a custom grid in NSTableView
- From: Eric Gorr <email@hidden>
- Date: Thu, 10 Feb 2011 17:51:34 -0500
I've got a sample project demonstrating the problem:
http://ericgorr.net/cocoadev/TableViewGridDrawing.zip
I've included a screen recording showing the problem as well.
Basically, I need to drawn some vertical column line in a column. Since, in the real case, these lines would be drawn for only some of the columns, I need to completely customize the -drawGridInClipRect: method.
So,, the problem is that the rightmost line is not always drawn while I am resizing a column and it goes off the right edge and comes back.
Whether the last line is drawn or not seems to be dependent upon how fast I am resizing a column.
If I let the mouse button go and start again, the last line is drawn immediately.
As best as I can determine there is some kind of caching of the grid lines going on because I can see my drawing code being called, but not see the complete result appear in the table.
All of the other lines draw as expected.
I thought it might be a clipping issue, but I do not believe that is the case.
If anyone has any thoughts, I would be interested.
Thank you.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden