Way to detect window position on Mac?

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

Excellent yeah good one, forget returning the point, and return X and Y instead. Thanks Brucey!

The thing is, I've had good success in returning a TPoint from a Windows API call before, but it wasn't a return value it was passed in as a parameter (Byte Ptr), also the TPoint was two INTS not two floats so maybe that's why?

OK then, so NOW how to return the CLIENT AREA RECT of a window i.e. the CLIENT AREA ORIGIN and the CLIENT AREA SIZE. Any ideas dudes? I suppose the apple developer site may have some clues...