• 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
NSQuickDrawView update problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSQuickDrawView update problem


  • Subject: NSQuickDrawView update problem
  • From: John Pattenden <email@hidden>
  • Date: Wed, 8 May 2002 00:13:31 -0700

I'm trying to draw into an NSQuickDrawView and it all works fine except that everytime my drawRect routine is called anything not redrawn is erased.

this is a trivial example that paints a rect 10 pixels further down and to the right in the view each time drawRect is called (until it goes off the edge) - which works, but the rectangle drawn the time before is erased.

I would expect a series of rectangles to be drawn, instead it performs more like an animation of a single rectangle.

if (first==0) {
first++;
SetRect(&theRect, 0,0,10,10);
}else
{ SetRect(&theRect, theRect.top + 10, theRect.left+10, theRect.bottom+10, theRect.right+10);
first++;
}
PaintRect(&theRect);


So I guess the question is - how do I stop the quickdraw view being erased except for what has just been redrawn?

There seems to be scant documentation or examples using NSQuickDrawView so any pointers would help a lot...


John Pattenden
ScreenTime Media

Screen Saver creation tools for Flash, Director, PowerPoint and QuickTime
http://www.screentime.com
_______________________________________________
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.

  • Prev by Date: Re: A Matrix collection class
  • Next by Date: Transparent Windows -> "Transparent Clicks"?
  • Previous by thread: Re: Making an NSTextView have a data source
  • Next by thread: Transparent Windows -> "Transparent Clicks"?
  • Index(es):
    • Date
    • Thread