Re: 10.5 vs. 10.6 [NSMenu accessibilityIsIgnored] exception
Re: 10.5 vs. 10.6 [NSMenu accessibilityIsIgnored] exception
- Subject: Re: 10.5 vs. 10.6 [NSMenu accessibilityIsIgnored] exception
- From: James Dempsey <email@hidden>
- Date: Fri, 7 May 2010 11:38:22 -0700
We added support for -accessibilitySetOverrideValue:forAttribute: to NSMenu and NSMenuItem, for simple value types in 10.6 (NSString, NSNumber), primarily to enable adding an accessibility description to menu items which display only an image. This also included implementing accessibilityIsIgnored on those two classes in 10.6.
What are you trying to do that gives this exception?
-James
--------------------------------------------------
James Dempsey
AppKit Engineering
Apple
On May 7, 2010, at 11:13 AM, Erik Benoist wrote:
> All-
> I am developing a small NSMenuItem which works well in 10.6, but when ran in 10.5 it spits the following stack trace. I am building against the 10.6 SDK with a deployment target of 10.4. With that said I can and I have built against the 10.4, 10.5, and 10.6 APIs without any problem, but this exceptions is still raised in 10.5 systems.
>
> 5/4/10 8:30:31 AM itunesbar[10130] *** -[NSMenu accessibilityIsIgnored]: unrecognized selector sent to instance 0x120390
> 5/4/10 8:30:31 AM itunesbar[10130] An uncaught exception was raised
>
> 5/4/10 8:30:31 AM itunesbar[10130] *** -[NSMenu accessibilityIsIgnored]: unrecognized selector sent to instance 0x120390
> 5/4/10 8:30:31 AM itunesbar[10130] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSMenu accessibilityIsIgnored]: unrecognized selector sent to instance 0x120390'
> 5/4/10 8:30:31 AM itunesbar[10130] Stack: (
> 2420957163,
> 2522938939,
> 2420986346,
> 2420979692,
> 2420979890,
> 2432009822,
> 2432009662,
> 2431163468,
> 2431123386,
> 2431121692,
> 2431120735,
> 2431120541,
> 2431119692,
> 10646,
> 10429
> )
> 5/4/10 8:30:34 AM com.apple.launchd[147] ([0x0-0x23a23a].com.yourcompany.itunesbar[10130]) Exited abnormally: Trace/BPT trap
>
> -Erik _______________________________________________
>
> 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
_______________________________________________
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