Re: Working with NSTextFields
Re: Working with NSTextFields
- Subject: Re: Working with NSTextFields
- From: Alex Hall <email@hidden>
- Date: Sun, 20 Sep 2015 09:42:54 -0400
> On Sep 18, 2015, at 21:24, Quincey Morris <email@hidden> wrote:
>
> On Sep 18, 2015, at 16:46 , Alex Hall <email@hidden <mailto:email@hidden>> wrote:
>>
>> myField.accessibilityHelp="new help message"
>>
>
> Well, it’s a fascinating problem. I can see what’s wrong, but I don’t know why.
>
> For some reason, the “accessibilityHelp” property, declared in the NSAccessibility protocol, is being bridged into Swift as a function (well, 2 functions, a getter-alike and a setter-alike), rather than a Swift property. The following syntax compiles:
>
> myField.setAccessibilityHelp (“new help message")
>
> though I have no quick way of verifying that it’s doing the right thing at run-time. AFAICT this has nothing to do with the text field being an outlet.
>
> You should submit a bug report.
Thanks for that; yes, I will file one. During execution, the hint works perfectly when set that way. How odd. FYI, with VoiceOver enabled, pressing control-option-shift-h will speak the hint (AKA help) for whatever item is in focus. Control-option-f3 will speak the accessibility text. Just in case you ever need it for testing, but then again, I guess you'd be able to use the Accessibility Inspector instead.
--
Have a great day,
Alex Hall
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden