Where would I look for documentation that describes how a running
process
receives notice that its icon has been selected in the Dock? The
process is a
ported commandline application running in an Xterm. I have it able
to launch
fine from the dock and an explicit call to SetFrontProcess(&PSN) at
startup
makes it take input without an extra mouse click, but it does not
respond
properly to clicks on its Dock icon to bring it forward or give it
focus after
it has been launched. I know what calls I need, I just don't know
how to know
when they are needed.
I don't know if any of this is really relevant to an Xterm, but when a
currently running app is selected from the dock, it receives a 'rapp'
Apple Event.
Although if it isn't coming forward or getting focus, you're probably
seeing a larger problem than the lack of an 'rapp' handler. I'd guess
that the app isn't registered as a UI process with the window server.
You might be able to do that by calling TransformProcessType with a
type of kProcessTransformToForegroundApplication, but I'm not sure.
-Eric
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Unix-porting mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/unix-porting/email@hidden