Re: AXApplication values wrong
Re: AXApplication values wrong
- Subject: Re: AXApplication values wrong
- From: Chris Fleizach <email@hidden>
- Date: Sat, 17 Mar 2012 23:24:17 -0700
If you're not using NSWindows, then your application will not know about your fake windows. I'd suggest using a subclass of NSWindow at the least.
On Mar 17, 2012, at 2:55 PM, Felipe Monteiro de Carvalho wrote:
> Hello,
>
> AXApplication is returning wrong values for me:
>
> <AXApplication: "lazclock">
>
> Attributes:
> AXRole: "AXApplication"
> AXRoleDescription: "application"
> AXChildren: "<array of size 1>"
> AXFrontmost (W): "true"
> AXHidden (W): "false"
> AXFocusedUIElement: "<AXApplication: "lazclock">"
> AXTitle: "lazclock"
> AXMenuBar: "<AXMenuBar>"
> AXWindows: "<array of size 0>" -> Wrong
> AXMainWindow: "(null)" -> Wrong
> AXFocusedWindow: "(null)" -> Wrong
> AXEnhancedUserInterface (W): "false"
>
> Is it possible to override the answer given for AXApplication to fix
> that? For windows it is easy, just override the accessibility methods,
> but NSApp is a ready class which I don't inherit from ...
>
> I am creating my window with
> MyClass.alloc.initWithContentRect_styleMask_backing_defer which to me
> seams correct so I have no idea why AXApplication has wrong values...
>
> thanks,
> --
> Felipe Monteiro de Carvalho
> _______________________________________________
> 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
_______________________________________________
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