• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Strange problem drawing a custom grid in NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Strange problem drawing a custom grid in NSTableView
      • From: Corbin Dunn <email@hidden>
  • Prev by Date: Re: [iOS] Strange behavior of NSFetchedResultsController
  • Next by Date: Re: Strange problem drawing a custom grid in NSTableView
  • Previous by thread: Screensaver on multiple monitors, asl_log mystery solved, I think ...
  • Next by thread: Re: Strange problem drawing a custom grid in NSTableView
  • Index(es):
    • Date
    • Thread