Re: Which app owns the menu bar?
Re: Which app owns the menu bar?
- Subject: Re: Which app owns the menu bar?
- From: Bill Cheeseman <email@hidden>
- Date: Thu, 18 Oct 2007 14:27:51 -0400
- Thread-topic: Which app owns the menu bar?
on 2007-10-18 1:52 PM, Eric Schlegel at email@hidden wrote:
> I don't think there's any one-stop way to do this, but I think you
> should get the right answer if you iterate over the process list,
> starting with GetFrontProcess, and look for the first process that is
> not a UIElement or BackgroundOnly process.
>
> Please also file a bug requesting an API to do this; we have this
> capability in the OS, it's just not exposed as API.
In Cocoa, -[NSWorkspace activeApplication] should always return the
frontmost application. I've never seen it return a UIElement application.
Cocoa has the opposite problem, though: -[NSWorkspace launchedApplications]
returns only non-background and, I think, non-UIElement applications. There
is no Cocoa API to get a list of all running applications, including
background-only and UIElement applications.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
www.quecheesoftware.com
PreFab Software - www.prefabsoftware.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden