Hi,<br /><br />I'm writing some custom UIs for an effect plugin on OS X and would like to use Quartz 2D rather than QuickDraw. I noticed that the SDK samples are still using QuickDraw -- is this for any technical reason or just due to their legacy?<br /><br />I tried the following test but couldn't get it to paint anything:<br /><br />-----------------<br />void *dp = (*(event_extra->contextH))->cgrafptr;<br />CGrafPtr port = reinterpret_cast<CGrafPtr>(dp);<br />CGContextRef myContext;<br /><br />OSStatus status = QDBeginCGContext(port, &myContext);<br />if (status == noErr)<br />{<br /> CGContextSetRGBFillColor(myContext, 0, 0, 1, .5);<br /> CGContextFillRect(myContext, CGRectMake(onscreenRect.left, onscreenRect.bottom, 100, 100));<br /> CGContextFlush(myContext);<br /> <br /> QDEndCGContext(port, &myContext);<br />}<br />-----------------<br /><br />So for now am using QuickDraw.<br /><br />Thanks,<br />Neil