FROM : Gerd Knops
DATE : Thu May 08 19:17:05 2008
On May 7, 2008, at 8:31 PM, Martin Wierschin wrote:
>> When access for assistive devices is enabled in the system
>> preferences, the exception handler in my application catches
>> bunches of NSAccessibilityExceptions when a panel is opened.
>>
>> Any way to avoid that?
>
> You can have your NSExceptionHandler delegate methods ignore
> accessibility exceptions, eg:
>
> - (BOOL) exceptionHandler:(NSExceptionHandler*)handler
> shouldHandleException:(NSException*)exception mask:(unsigned)mask
> {
> return ! [[exception name] isEqualToString:NSAccessibilityException];
> }
>
> I don't know how effective this is though.
Doohhh... I was focussed on trying to deal with the cause (probably
inside Cocoa) that it didn't occur to me to just treat the symptom
which appears appropriate in this case.
Thanks
Gerd
DATE : Thu May 08 19:17:05 2008
On May 7, 2008, at 8:31 PM, Martin Wierschin wrote:
>> When access for assistive devices is enabled in the system
>> preferences, the exception handler in my application catches
>> bunches of NSAccessibilityExceptions when a panel is opened.
>>
>> Any way to avoid that?
>
> You can have your NSExceptionHandler delegate methods ignore
> accessibility exceptions, eg:
>
> - (BOOL) exceptionHandler:(NSExceptionHandler*)handler
> shouldHandleException:(NSException*)exception mask:(unsigned)mask
> {
> return ! [[exception name] isEqualToString:NSAccessibilityException];
> }
>
> I don't know how effective this is though.
Doohhh... I was focussed on trying to deal with the cause (probably
inside Cocoa) that it didn't occur to me to just treat the symptom
which appears appropriate in this case.
Thanks
Gerd
| Related mails | Author | Date |
|---|---|---|
| Gerd Knops | May 7, 21:22 | |
| Martin Wierschin | May 8, 03:31 | |
| Gerd Knops | May 8, 19:17 |






Cocoa mail archive

