Re: Why does NSTableView stop responding to validateMenuItem: ?
Re: Why does NSTableView stop responding to validateMenuItem: ?
- Subject: Re: Why does NSTableView stop responding to validateMenuItem: ?
- From: Jason Foreman <email@hidden>
- Date: Thu, 29 Jan 2009 16:12:44 -0600
On Thu, Jan 29, 2009 at 2:37 PM, Doug Knowles <email@hidden> wrote:
> And why is the exception only thrown infrequently (and persistently once it
> starts), when it's normally successfully invoked every time a click on the
> respective menu?
The real question is why is the exception not thrown every time.
NSTableView doesn't seem to implement validateMenuItem:.
NSObjectController is an example of a class that does. Perhaps you
are using an NSArrayController for your table's data, in which case
you can call validateMenuItem: on that. It'd still be a good idea to
check respondsToSelector first.
You've read this?
http://developer.apple.com/DOCUMENTATION/Cocoa/Conceptual/MenuList/Articles/EnablingMenuItems.html#//apple_ref/doc/uid/20000261-74653
Jason
_______________________________________________
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