• 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
Drawing graphics into a view in AppleScript Studio
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Drawing graphics into a view in AppleScript Studio


  • Subject: Drawing graphics into a view in AppleScript Studio
  • From: Jeffrey Mattox <email@hidden>
  • Date: Fri, 16 Jan 2004 18:44:43 -0600

I'm trying to use Cocoa do draw some graphics inside a window that is set up by AppleScript Studio. I've searched Everywhere and find no evidence that *anybody* has tried to do this. Even the ASS list has been unresponsive to this question (everybody there appears to be on walkabout :-).

I can pass the window object to Cocoa, get the view, lockFocus, draw some stuff, and unlockFocus. I've verified that the window and view objects are the correct ones and that the lock and unlock is on the expected view. I've even seen flashes of my graphics when I fiddle with window fundamentals such as buffering, so I know my drawing is there and in the right spot, but a stable drawing never appears in the window.

I think ASS is overwriting my strokes by redrawing the window background on top of my drawing.

Any ideas on how to draw into a window controlled by ASS?

Jeff
_______________________________________________
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.

  • Follow-Ups:
    • Re: Drawing graphics into a view in AppleScript Studio
      • From: Jeffrey Mattox <email@hidden>
  • Prev by Date: Re: sketch sample code
  • Next by Date: Re: Cocoa equivalent to TK canvas widget
  • Previous by thread: Re: Is my computer connected to the web?
  • Next by thread: Re: Drawing graphics into a view in AppleScript Studio
  • Index(es):
    • Date
    • Thread