Why does NSTableView stop responding to validateMenuItem: ?
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