Re: drawRect: called twice for NSView subclass.

2008-04-20 Thread William Hunt
On Apr 19, 2008, at 6:28 PM, Scott Thompson wrote: On Apr 19, 2008, at 7:15 PM, William Hunt wrote: Essentially I have a window with a custom view atop a button. What happens at each refresh, however, is that the custom view's drawRect: is called twice. First it is called with the whole

Re: drawRect: called twice for NSView subclass.

2008-04-20 Thread David Duncan
On Apr 19, 2008, at 5:15 PM, William Hunt wrote: Essentially I have a window with a custom view atop a button. What happens at each refresh, however, is that the custom view's drawRect: is called twice. First it is called with the whole window's NSRect, then it is called with the "proper"

Re: drawRect: called twice for NSView subclass.

2008-04-19 Thread Scott Thompson
On Apr 19, 2008, at 7:15 PM, William Hunt wrote: Essentially I have a window with a custom view atop a button. What happens at each refresh, however, is that the custom view's drawRect: is called twice. First it is called with the whole window's NSRect, then it is called with the "proper"