Sunday, February 21, 2010

Programmer - How do I receive notification of a new window opening?

Programmer Question

I want to respond to a certain type of new window being opened by an external application. I have some experience finding applications and windows currently open (system wide) using some of the carbon functionality, so could theoretically just check every few seconds. This would require getting a list of all open windows and checking it against some list I would have to maintain, and feels very clunky.



How can I get a simple, clean notification when a new window is launched? Should I use the accessibility API? If so, what specifically am I looking for?

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails