• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: 10.5 vs. 10.6 [NSMenu accessibilityIsIgnored] exception
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 10.5 vs. 10.6 [NSMenu accessibilityIsIgnored] exception


  • Subject: Re: 10.5 vs. 10.6 [NSMenu accessibilityIsIgnored] exception
  • From: Erik Benoist <email@hidden>
  • Date: Fri, 7 May 2010 15:20:44 -0600

Thats the thing I have built this against the 10.4SDK and I don't use any of the accessibility options in my code.

-(void)awakeFromNib
{
	imageFromBundle = [NSImage imageNamed:@"defaultimage20.png"];

	statusItem = [[[NSStatusBar systemStatusBar] statusItemWithLength:NSVariableStatusItemLength] retain];
	[statusItem setMenu:statusMenu];
	[statusItem setImage:imageFromBundle];
	[statusItem setHighlightMode:YES];


thats it.

and from my .h

@interface MainController : NSObject
{
	NSStatusItem *statusItem;
	NSWindow *defaultWindow;
	NSTimer *timer;
	NSString *songStr;
	NSImage *imageFromBundle;
	NSTextView *theTextView;
	NSRect position;




	IBOutlet NSMenu *statusMenu;
	IBOutlet NSMenuItem *currentSong;
	int loopNum;
	int animNum;
	BOOL animText;
	IBOutlet NSMenuItem	*pauseButtonText;
	IBOutlet NSMenuItem	*scrollButtonText;
	IBOutlet NSWindow *animationTestWindow;




}

On May 7, 2010, at 12:38 PM, James Dempsey wrote:

> 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

References: 
 >10.5 vs. 10.6 [NSMenu accessibilityIsIgnored] exception (From: Erik Benoist <email@hidden>)
 >Re: 10.5 vs. 10.6 [NSMenu accessibilityIsIgnored] exception (From: James Dempsey <email@hidden>)

  • Prev by Date: Re: Problem mac os X version 10.6 when using sprinft
  • Next by Date: Re: Synthesized ivar for std::tr1::shared_ptr<MyClass>?
  • Previous by thread: Re: 10.5 vs. 10.6 [NSMenu accessibilityIsIgnored] exception
  • Next by thread: Problem mac os X version 10.6 when using sprinft
  • Index(es):
    • Date
    • Thread