• 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
Why does NSTableView stop responding to validateMenuItem: ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why does NSTableView stop responding to validateMenuItem: ?


  • Subject: Why does NSTableView stop responding to validateMenuItem: ?
  • From: email@hidden
  • Date: Thu, 29 Jan 2009 15:41:39 +0000

Hi, all,

My application at times starts throwing exceptions in my menu item validation code:

-[NSTableView validateMenuItem:]: unrecognized selector sent to instance 0x15e80850

The offending line is in my document class's menu validation logic:

else if ( action == @selector(selectAll:) ) {
answer = [ibCardListView validateMenuItem:menuItem];
}

Needless to say, this line gets called every time the "Select All" menu item is validated, which normally works fine, so something is happening at runtime to cause the exception to start being thrown.

Any idea what could cause it?

The "ibCardListView" object pointer seems intact when I inspect it in the debugger, and the table view itself seems to continue behaving normally. Using the debugger, I've sent respondsToSelector: messages to it with selectors of various methods an NSTableView should respond to, and the only response that comes back wrong is validateMenuItem:

Any suggestions welcome.

TIA,
Doug Knowles
_______________________________________________

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


  • Follow-Ups:
    • Re: Why does NSTableView stop responding to validateMenuItem: ?
      • From: Andy Lee <email@hidden>
  • Prev by Date: Re: NSView behaves different on 10.4 vs 10.5?
  • Next by Date: Re: [Q] efficient or good model for send/receive with streams scheduled in runloop?
  • Previous by thread: Re: Query on CrashReporter
  • Next by thread: Re: Why does NSTableView stop responding to validateMenuItem: ?
  • Index(es):
    • Date
    • Thread