Re: Which app owns the menu bar?
Re: Which app owns the menu bar?
- Subject: Re: Which app owns the menu bar?
- From: Scott Guelich <email@hidden>
- Date: Thu, 18 Oct 2007 15:01:33 -0400
Oops... originally tried to send this from an unauthorized email
address.
In Cocoa, -[NSWorkspace activeApplication] should always return the
frontmost application. I've never seen it return a UIElement
application.
Hi Bill, thanks for the suggestion, and FYI, UI Browser has been
invaluable as I've been developing this app.
My app is Cocoa when it's not diving into the accessibility API, so
that would be great it if worked. Unfortunately, I just tried adding
this line to my LSUIElement app, and when I run it, I again get my
app's info and not Xcode's.
NSLog(@"Active application is %@", [[NSWorkspace
sharedWorkspace] activeApplication]);
I just triple-checked that it definitely is LSUIElement=1 and that
Xcode's menu bar remains active the whole time.
Scott
_______________________________________________
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