Re: Very small rect in drawRect:
Re: Very small rect in drawRect:
- Subject: Re: Very small rect in drawRect:
- From: Quincey Morris <email@hidden>
- Date: Sat, 28 Sep 2013 00:18:30 -0700
On Sep 27, 2013, at 23:39 , "Gerriet M. Denkmann" <email@hidden> wrote:
> My CustomView (aka DriftView) has no subviews at all. It only has a superview: the ScrollView.
What I was trying to draw your attention to is that the backtrace tells you that the dirty region is complex (i.e. not a simple rectangle) in that scenario. Complex enough that it required 4 levels of recursion to produce the 1-pixel update rect.
If this is not the result of what's inside the view, then it presumably results from what is over the view -- there may be invisible windows (not necessarily belonging to your app) or something along that line. Or perhaps you're using 3rd-party code that does a setNeedsDisplayInRect with that small rect for some hinky reason of its own. The fact that the dirty region ends up being like this is essentially an implementation detail, not an indication of anything wrong, or of any state that you need to be aware of.
_______________________________________________
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