Re: Problem drawing outside of drawRect: in a custom table cell
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