Question

I'm mantaining an ancient Firefox plugin. It uses GetWindowFromPort to get a WindowPtr object out of the NP_Port object which is the platform specific window data in the WidowPtr object. Now it always returns NULL.

NP_Port object is non-null as is the port field (CGraphPtr) of that object. However, without GetWindowFromPort, I no longer know how to get a WindowPtr from a CGraphPtr...

Was it helpful?

Solution

It appears it's bigger than that. QuickDraw (of which GetWindowFromPort is a function) us na longer supported in any 64b system...

OTHER TIPS

This is probably because Firefox is now creating a separate offscreen GWorld for plug-ins to draw to, which is not associated with a window. Considering that in the future plug-ins are going to move out-of-process, depending on it returning a meaningful value is not going to be a good idea. What are you using this value for?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top