Re: getting the key window from another application
Re: getting the key window from another application
- Subject: Re: getting the key window from another application
- From: Keith Alperin <email@hidden>
- Date: Fri, 6 May 2005 12:17:26 -0500
Thanks Bill (and others)!
I did some research on accessibility and found that there is some
cocoa support for it. I found an old post (by someone participating
in this thread no less!) suggesting that if you have the
NSApplication, then you can get the currently focused element: http://
tinyurl.com/9pl8h . Unfortunately, i haven't been able to get the
NSApplication for another app even though i can get it's process id.
The carbon API scares me a little bit, but i'll look more closely at
it. If anyone has any experience with it, please feel free to chime in.
Thanks again,
Keith
On May 6, 2005, at 6:48 AM, Bill Cheeseman wrote:
on 2005-05-06 12:00 AM, Keith Alperin at email@hidden wrote:
I'm trying to interact with the first responder programatically. I'm
most interested in manipulating text in in the focused text field,
but there may be other cases where i will want to do something to
whatever control is in focus.
You really can't do this sort of thing in plain-Vanilla Cocoa
[snip] I would recommend that you consider
using the accessibility API.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden