Re: Bug in Cocoa drawing? (was 'Changing subviews during drawing')
Re: Bug in Cocoa drawing? (was 'Changing subviews during drawing')
- Subject: Re: Bug in Cocoa drawing? (was 'Changing subviews during drawing')
- From: j o a r <email@hidden>
- Date: Fri, 2 Apr 2004 14:25:14 +0200
On 2004-04-02, at 10.17, Drew McCormack wrote:
>
> * What happens in "drawInPlotView:"?
>
This draws some lines with NSBezierCurve. To calculate the lines
>
involves some complex calculations, and that is why I use the
>
NS_DURING: I want to catch exceptions raised in calculating where the
>
lines should be drawn.
Do you compile using -Wall? Any warnings?
Do you often get exceptions in that portion of the code, or more
importantly, did you get any exceptions at the time when you had the
problems that originated this thread?
>
> * Why do you use "compositToPoint:..." *after* you have unlocked the
>
> image? Are you not supposed to bracket all drawing operations inside
>
> a lock/unlock block?
<snip>
>
So the answer is: I do the drawing when the NSImage has focus, but I
>
composite the NSImage itself when the NRTPlotView has focus.
Of course. I missed that.
j o a r
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.