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

Re: Drawing graphics into a view in AppleScript Studio


  • Subject: Re: Drawing graphics into a view in AppleScript Studio
  • From: Jeffrey Mattox <email@hidden>
  • Date: Wed, 28 Jan 2004 17:59:05 -0600

At 12:29 AM -0700 1/17/04, Kerry Hazelgren wrote:
AppleScript Studio is really just Xcode with support for AppleScript thrown in, so why not use the standard Xcode/IB process for creating, overriding, and drawing into a view?

I have figured out how to subclass NSView and use Cocoa to draw graphics inside a window that is set up by AppleScript Studio. So, now I can draw into my view and it stays there.

But, I don't want to redraw everything each time my drawRect: is called because much of it has not changed (too slow). However, if I don't redraw everything, my prior strokes are overwritten before my drawRect: is invoked. Something is clobbering my view and replacing my prior strokes with the standard window background.

I have no commands in my drawRect: that refer to any other views or windows, and I'm just drawing hundreds of lines and circles.

How do I prevent the window background from clobbering my view before my drawRect: is invoked?

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: "M. Uli Kusterer" <email@hidden>
References: 
 >Drawing graphics into a view in AppleScript Studio (From: Jeffrey Mattox <email@hidden>)

  • Prev by Date: Re: Compatability issues with IE v5.2.3 as compared to v5, v5.2.1,v5.2.2 [Panther Issues]
  • Next by Date: Re: Sending email programmatically
  • Previous by thread: Drawing graphics into a view in AppleScript Studio
  • Next by thread: Re: Drawing graphics into a view in AppleScript Studio
  • Index(es):
    • Date
    • Thread