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

drawRect: called twice for NSView subclass.

2008-04-19 Thread William Hunt
Ok, it's been a while since I've bugged you guys, so I thought I'd get back into the fold. Note that I'm very new to graphics programming in general, and even more so for Cocoa. So be prepared for an easy fix! Anyway, the problem I have is this. +--+ |++|

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