Re: NSControl subclass and accessibility

2022-03-13 Thread Eyal Redler via Cocoa-dev
Thank you. Eyal > On 13 Mar 2022, at 18:31, Rob Petrovec wrote: > > Accessibility for NSControls is handled by the NSCell inside it, not the > NSControl. Good luck. > > —Rob > > >> On Mar 13, 2022, at 7:55 AM, Eyal Redler via Cocoa-dev >> wrote: >> >> Hi, >> >> I'm having trouble

Re: NSControl subclass and accessibility

2022-03-13 Thread Rob Petrovec via Cocoa-dev
Accessibility for NSControls is handled by the NSCell inside it, not the NSControl. Good luck. —Rob > On Mar 13, 2022, at 7:55 AM, Eyal Redler via Cocoa-dev > wrote: > > Hi, > > I'm having trouble getting a custom NSControl subclass properly visible with > regards to accessibility. > >

NSControl subclass and accessibility

2022-03-13 Thread Eyal Redler via Cocoa-dev
Hi, I'm having trouble getting a custom NSControl subclass properly visible with regards to accessibility. If I implement my custom control as an NSView subclass and adopt the NSAccessibilityButton protocol, I can "see" my custom control with accessibility inspector when I hover above it. If