Drawing graphics into a view in AppleScript Studio
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.