The only way you will be able to track a window owned by another process is via 
the AX (accessibility) APIs.
This comes with a caveat that users have to opt in to allow your app to control 
their computer. 
There is an API to request it. 
And one to see if you have it. 
If you have it, then you can look for the target app and window and create an 
observer object that can register to observe various AX properties and register 
callbacks for them. 
It's a tough API. 
All Core Foundation style C. 
But it enables some cool tricks.  
Sent from my iPhone

> On Apr 22, 2016, at 10:23 PM, Dave <d...@looktowindward.com> wrote:
> 
> Hi All, 
> 
> Is there any way of “pinning” one of my App’s windows so it is always in 
> front of a window owned by another application? I’m using a Floating Window 
> style at the moment, which works ok, but the window floats in fronts of 
> everything. I’d like my window to always be just in front of the target 
> window. Is this possible?
> 
> Thanks in advance for any ideas.
> 
> All the Best
> Dave
> 
> 
> 
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/dangerwillrobinsondanger%40gmail.com
> 
> This email sent to dangerwillrobinsondan...@gmail.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to