Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to read messages from the Dock?



On Nov 4, 2004, at 11:19 AM, Matt Ackeret wrote:

On Thu, 4 Nov 2004, robert delius royar wrote:
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

This email sent to email@hidden
References: 
 >How to read messages from the Dock? (From: robert delius royar <email@hidden>)
 >Re: How to read messages from the Dock? (From: Matt Ackeret <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.