Re: Correctly drawing a custom view...

2008-11-25 Thread I. Savant
On Tue, Nov 25, 2008 at 10:32 AM, Jean-Nicolas Jolivet <[EMAIL PROTECTED]> wrote: > I was actually reading the View Programming Guide... guess I was looking at > the wrong place. My mistake - that's probably the correct guide for the information I mentioned. There's a little information in the d

Re: Correctly drawing a custom view...

2008-11-25 Thread Jean-Nicolas Jolivet
I was actually reading the View Programming Guide... guess I was looking at the wrong place. Thanks... On 25-Nov-08, at 10:29 AM, I. Savant wrote: Obviously my technique isn't working because when this happens, the area around the control is getting filled with the gradient and the resul

Re: Correctly drawing a custom view...

2008-11-25 Thread I. Savant
> Obviously my technique isn't working because when this happens, the area > around the control is getting filled with the gradient and the result is > definitely weird... Have you read the Cocoa drawing guide? It goes into great detail about this very thing. The rect passed in via -drawRect: is

Correctly drawing a custom view...

2008-11-25 Thread Jean-Nicolas Jolivet
I'm using a custom view that i simply fill with a gradient in the drawRect methodI love the result however, I realized after adding some controls to my custom view that the "rect" being drawn in drawRect is not always the view's frame, but it's often just a small part of the view gettin