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: Ricky Sharp <email@hidden>
- Date: Thu, 2 Dec 2004 16:48:29 -0600
On Dec 2, 2004, at 4:40 PM, Mike Engber wrote:
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.
Is this the case only for Cocoa applications than link against the
Carbon framework?
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).
My app does link against Carbon, so I'll keep my eye out for this
issue. While I don't do any work currently in awakeFromNib, my app
delegate does create my main window in response to
applicationDidFinishLaunching:
Finally, I'm assuming that this is a bug that's already been filed? If
not, one should be so that these workarounds can be removed when
running under Tiger.
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.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