Search code examples
macoscore-graphicsquartz-graphicsmacos-carbon

Window Manager API dont work on 64bit Apps. What to use instead?


Apples 64 bit documentation says, The Window Manager is not available to 64-bit applications. For information about using windows in a Cocoa user interface, see Window Programming Guide.

I am not using cocoa so Window Programming Guide is no good for me. I need to use API like HIWindowGetBounds() so that I can get the window position with a coordinate space defined by the screen size in pixels. Or any other way to fetch the window position on screen?

Thank you


Solution

  • I need to support both 32 bit and 64 bit platform and keep code portable.

    You cannot.

    Carbon is dead. It will never be extended to be 64-bit. It has been dead for years now.

    Cocoa is the only option you have.

    I'm sorry.