• 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
Re: Problem drawing outside of drawRect: in a custom table cell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem drawing outside of drawRect: in a custom table cell


  • Subject: Re: Problem drawing outside of drawRect: in a custom table cell
  • From: Graham Cox <email@hidden>
  • Date: Thu, 11 Dec 2008 01:31:04 +1100


On 11 Dec 2008, at 1:23 am, Erik Buck wrote:

You don't have to draw outside of -drawRect:. Instead of invalidating the table, just call -setNeedsDisplayInRect: or - displayInRect: and pass only the rect of the row that needs to be redrawn.


Thanks - I'm well aware of how that works. The problem as I did state was that under some circumstances I can't control or fully isolate, the tableview decides to reload all of its visible rows even if only a small area was invalidated, thus blowing away my cell's temporary state during menu tracking. It's working around this behaviour that has led me here, after about two very long days of trying it the "normal" way. In fact, that reminds me, it's high time I went to bed...........

Graham




_______________________________________________

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


References: 
 >Re: Problem drawing outside of drawRect: in a custom table cell (From: Erik Buck <email@hidden>)

  • Prev by Date: Re: Searchable persistent file reference
  • Next by Date: Very odd issue when try to implement the drag and drop functions for NSOutlineview
  • Previous by thread: Re: Problem drawing outside of drawRect: in a custom table cell
  • Next by thread: Very odd issue when try to implement the drag and drop functions for NSOutlineview
  • Index(es):
    • Date
    • Thread