Hi Mox, CGContextRef must be extracted from event when you use HIFmk.
I cc:ed your mail and my response to Mac porting list as it is the place to talk about OOo mac proting code.
Bye, Sebastien PLISSON aka plipli Mox Soini a écrit :
Salut Sebastien! Congratulations on your work on HIFramework! (read your blog entry). You could have mentioned where to get the code (I eventually found it from ericb:s website). The code obviously needs a lot of cleanup but it's a very good start. I was able to get it compiling too, but unfortunately my build is very broken (for other reasons) so I didn't see it running well. As part of my work in cairocanvas (http://mox.fidisk.fi/bonsai/cairoquartz01) and also the future work with quicktime plugin, I have been trying to find proper ways to get the current CGContextRef from VCL. With current VCL Aqua code (and also with your HIFramework stuff), we have at the moment two (I guess) main references: a WindowRef and a HIView I'm not yet sure which one of those (or both?) we should export in vcl/inc/sysdata.hxx (currently WindowRef), but in addition to those I may have to add a CGContextRef too. The problem currently is that this code: CreateCGContextForPort(GetWindowPort((WindowRef) pData->rWindow), &rWindowContext); creates a NEW CGContextRef, instead of using the existing one that VCL is drawing to. what is your recommended ways of getting the CURRENT CGContextRef from a WindowRef or from a HIView? or should I use the CGContextRef in completely different way? Best Regards, Mox
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
