Question 1 - There have been many discussions about a lack of
"rubber-band api." At the time (May03) the WindowFun sample code was
pointed out as a "modern" way of implementing a selection tool (like
the Finder). WindowFun had a LineTool example that created an
overlay window using QDBeginCGContext. I wanted to make sure that
using QuickDraw CGrafPtrs was still the "modern way of doing this"???
You will want to move to using CoreGraphics directly instead of
Quickdraw. With CoreGraphics you will get transparency with your
drawing now, and acceleration in the future (Tiger).
I think the sample app actually does use CoreGraphics, since it's using
QDBeginCGContext. There's nothing wrong with continuing to use that
approach. Another option (in 10.3 and later) would be to make the
overlay window use compositing mode and override the kEventControlDraw
handler on the window's root view, and then get the CGContext from the
Draw event.
-eric
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden