• 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: Debugging -setNeedsDisplayInRect:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debugging -setNeedsDisplayInRect:


  • Subject: Re: Debugging -setNeedsDisplayInRect:
  • From: Nick Zitzmann <email@hidden>
  • Date: Mon, 06 Aug 2012 20:55:13 -0600

On Jul 27, 2012, at 10:36 AM, Curt Clifton <email@hidden> wrote:

> On Jul 27, 2012, at 8:55 AM, Nick Zitzmann <email@hidden> wrote:
>
>> But I need to be able to see **all** invocations of the method from **all** NSViews to catch the culprit, because I have a rather complicated view hierarchy, including some views for which I don't have the source, and I don't know exactly which view is doing this. In order to do that, I need to set a conditional breakpoint, and this would be easy if an NSRect could be stored in a register, but how do I set a conditional breakpoint when the variable I want to investigate is on the stack? And where would I find each of the CGFloats on the stack?
>
> For debugging, you might consider swizzling NSView's -setNeedsDisplayInRect: to do the conditional logging that Markus suggested.


I usually don't like swizzling; it feels like black magic to me. But since it was just for debugging, this time I put on my blue robe and pointy yellow wizard hat anyway, and found and fixed the problem. Thanks.

Nick Zitzmann
<http://www.chronosnet.com/>


_______________________________________________

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

  • Prev by Date: Re: 10.8 copiesOnScroll, -setNeedsDisplayInRect: ignored during scrolling
  • Next by Date: Re: makeFirstResponder: and tab views
  • Previous by thread: Re: Problem using UIGestureRecognizer
  • Next by thread: UITableView with multiple UIScrollView each having its own zoom scale?
  • Index(es):
    • Date
    • Thread