• 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: Very small rect in drawRect:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Very small rect in drawRect:


  • Subject: Re: Very small rect in drawRect:
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Sat, 28 Sep 2013 14:34:22 +0700

On 28 Sep 2013, at 14:18, Quincey Morris <email@hidden> wrote:

> 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.
No, this is not the case.

> 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.

Right now there is another window completely obscuring the window with the DriftView.

And I managed to reproduce the small rect:
- hide the app
- make the app active again (clicking the Dock-Icon)

This produces:
2013-09-28 14:26:55.528 -- -[DriftView drawRect:] nice rect {{0, 0}, {1393, 189}}; visibleRect {{0, 0}, {1393, 189}}
2013-09-28 14:26:55.565 -- -[DriftView drawRect:] Ignore very small rect {{0, 0}, {1, 1}}; visibleRect {{0, 0}, {1393, 189}}

Strange.
But you are probably right and I should just ignore this.


Kind regards

Gerriet.



_______________________________________________

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: 
 >Very small rect in drawRect: (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Very small rect in drawRect: (From: Quincey Morris <email@hidden>)
 >Re: Very small rect in drawRect: (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Very small rect in drawRect: (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Very small rect in drawRect:
  • Next by Date: Re: Very small rect in drawRect:
  • Previous by thread: Re: Very small rect in drawRect:
  • Next by thread: Re: Very small rect in drawRect:
  • Index(es):
    • Date
    • Thread