Re: Cocoa app only showing AXApplication (no windows)
Re: Cocoa app only showing AXApplication (no windows)
- Subject: Re: Cocoa app only showing AXApplication (no windows)
- From: Mike Engber <email@hidden>
- Date: Thu, 2 Dec 2004 14:40:04 -0800
I'm pretty sure the problem is that Carbon (rather than Cocoa) is has
registered to handle accessibility for your app.
Without going into too much detail - when an app starts up, in some
circumstances, the Carbon code that initializes accessibility runs
before the Cocoa code does.
I've seen this happen when putting up a window in awakeFromNib. A work
around is to put up the window after a delay. There are other things
you can do in awakeFromNib that cause it as well (and delaying them is
the work around).
-ME
On Dec 2, 2004, at 2:18 PM, Rob Vreeland wrote:
One of my Cocoa apps has a serious Accessibility issue. Whenever I use
UIElementInspector on my app, the only element I get is AXApplication.
No
matter where I place the mouse on my main window (or any of apps
windows),
the inspector shows nothing else but AXApplication. The AXWindows
attribute
shows "<array of size 0>".
However, in my App delegate, I write out to the NSLog the contents of
the
NSApp's NSAccessibilityWindowsAttribute and it does in fact list all my
windows.
Another tidbit is if I browser my app using "UI Browser", all I see is
my
menu bar, again no windows show up.
All my other applications work fine with accessibility and I have been
over
the troubled apps code and settings with a fine tooth comb and cannot
find
anything out of the ordinary that would cause this.
Please help.
Thanks,
Rob
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40apple.com
This email sent to email@hidden
_______________________________________________
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