NSQuickDrawView update problem
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.