• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Bug in Cocoa drawing? (was 'Changing subviews during drawing')
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Bug in Cocoa drawing? (was 'Changing subviews during drawing') (From: Drew McCormack <email@hidden>)
 >Re: Bug in Cocoa drawing? (was 'Changing subviews during drawing') (From: j o a r <email@hidden>)
 >Re: Bug in Cocoa drawing? (was 'Changing subviews during drawing') (From: Drew McCormack <email@hidden>)

  • Prev by Date: Re: Altering attributes of hyperlinked text
  • Next by Date: Re: How to release all objects on 'Quit' of application
  • Previous by thread: Re: Bug in Cocoa drawing? (was 'Changing subviews during drawing')
  • Next by thread: Re: Bug in Cocoa drawing? (was 'Changing subviews during drawing')
  • Index(es):
    • Date
    • Thread