Find Window At Location Using Carbon And Carbon Problems In 64-Bit Applications

Posted by JxXx on Stack Overflow See other posts from Stack Overflow or by JxXx
Published on 2010-04-13T10:56:07Z Indexed on 2010/04/13 11:13 UTC
Read the original article Hit count: 565

As I said in some questions today I´m looking for the way to get window or windowPart references at a certain location. Although I know I could use Cocoa for this purpose (I don´t know how to do it yet) I prefer (and probably need) to do this using Carbon because the entire application that needs this functionality is written in C++ but I´ve found many problems trying it.

Does anyone get a valid windowPtr or windowRef using one of the following functions? FindWindow, MacFindWindow, HIWindowFindAtLocation or FindWindowOfClass

I always get 0 as the windowRef or windowPtr that I´m looking for. What I´m doing wrong? Any ideas?

It´s true that now if you want to create a 64-bit application for Mac OS X, you need to use Cocoa to implement its user interface because some APIs commonly used by Carbon applications are not available in 64-bit applications?

Thank you.

JxXx

© Stack Overflow or respective owner

Related posts about carbon

Related posts about findwindow