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: Ondra Cada <email@hidden>
- Date: Fri, 6 May 2005 14:20:42 +0200
Keith,
On 6.5.2005, at 6:00, Keith Alperin wrote:
I'm trying to interact with the first responder programatically.
I'm most interested in manipulating text in in the focused text field,
Presumed the manipulations are simple and don't need to be too
automatic, consider Services. That's the most clean solution for
manipulation of the focused text and it would work *nearly* in any
application; alas, it is also pretty limited in the flexibility.
Another possibility may be direct exploiting of the Input Management
API. I am not expert in that field and cannot say precisely what it
can and cannot do.
but there may be other cases where i will want to do something to
whatever control is in focus.
Depending on the "something", unless I have overlooked something
important, I guess forcing your bundle into the application might
remain the only clean solution. Note that for obvious reasons it
works only with nati... errr, sorry, with Cocoa applications. To do
this for Carbon or even X11/Java whatever, you would have to hack.
There should be the excellent Mike Ferris' TextExtras package freely
available on Web, which can be used to see how to do these things.
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
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