How to tell what's causing drawRect to be called?
问题 I've got my custom NSView with a bunch of custom buttons in it, the buttons are added as a subView in the NSView's drawRect method. Now I'm finding that after pressing a button the drawRect of the parent view is repeatedly called. Sometimes it only stops when I quit the app - I know this from a simple log statement in drawRect. Now I know there are probably bigger architectural issues in my app causing this, where do I go to begin tracking down what's causing this view to be repeatedly