Way to detect window position on Mac?

BlitzMax Forums/BlitzMax Programming/Way to detect window position on Mac?

Hi (again), now I'm trying to find out how to get the position of a Graphics Window (created with Graphics 800,600,0) on a Mac.

On the PC I call GetWindowRect from the Win API and this returns a Rect that I can read the coords from.

To get the client area I also use GetWindowInfo from the Win API which returns a TWindowInfo structure which contains the client area coords.

It would be really handy to have similar functions in Mac OSX so that I can get the mouse coords relative to the desktop then slide the mouse cursor in/out of the Graphics Window which has know coords relative to the desktop.

Anyone know how to do it? OR perhaps know of a website which has detail about the API calls that can be made, an equivalent of MSDN? Many thanks!