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.

~Martin

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to