I have a Mac Plugin for viewing images. It's originally written in Quickdraw, and I'm trying to move it to Quartz.
My current problem is the origin. In QD, the origin is (sensibly) the upper left corner of the plugin rectangle. In Quartz, it appears to be one screen height below the top of the plugin rectangle (not including firefox buttons, etc). This is effectively somewhere random in the middle of my plugin rectangle.
It also means that I need to know the size of the drawing part of the browser window. I'm sure I can figure out how big a window is, but how do I figure out how much space is taken up by tabs, etc? the Mac doesn't know about those things, does it?
On a related note, does anyone know why Apple decided to put the origin in the lower left? seems kind of dumb to me.