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: Fri, 27 Sep 2013 22:21:11 -0700
On Sep 27, 2013, at 22:05 , "Gerriet M. Denkmann" <email@hidden> wrote:
> The backtrace does offer me no clues:
>
> #1: 0x00007fff8d0f2140 AppKit`-[NSView _drawRect:clip:] + 4437
> #2: 0x00007fff8d0eefb3 AppKit`-[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 3058
> #3: 0x00007fff8d0efa44 AppKit`-[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 5763
> #4: 0x00007fff8d0efa44 AppKit`-[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 5763
> #5: 0x00007fff8d0efa44 AppKit`-[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 5763
> #6: 0x00007fff8d0efa44 AppKit`-[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 5763
The backtrace does in fact offer clues. Your view needs redrawing, and the frameworks are breaking down the dirty region into non-overlapping component rects that are drawn separately. It just happens that this decomposition process leaves a tiny rect to be drawn separately.
As to why it decomposes this way, my guess would be that your view has subviews (and/or controls) which are misaligned by a single pixel, changing what would otherwise be a nice rectangular dirty region into something slightly more complex.
_______________________________________________
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