Re: NSView drawing with superimposed text

2011-01-02 Thread Quincey Morris
On Jan 2, 2011, at 10:36, Michael McLaughlin wrote: > With Xcode 3.2.5 and the corresponding IB, I have a custom NSView into which > I want to draw. What you describe below doesn't entirely make sense, so perhaps you can clarify a bit. > This view has 15 static text views in front of it, in

Re: NSView drawing with superimposed text

2011-01-02 Thread Erik Buck
Each time -drawRect: is called, the rect parameter is a dirty rectangle calculated by the frameworks to be the smallest area that needs to be redraw. With your implementation, you are probably filling several small sub-rectangles of the view's bounds with white and then stroking lines in only o

NSView drawing with superimposed text

2011-01-02 Thread Michael McLaughlin
With Xcode 3.2.5 and the corresponding IB, I have a custom NSView into which I want to draw. This view has 15 static text views in front of it, in the contentView only, all of which are filled in before the custom drawing and none of which draw their own backgrounds. The code for the custom d