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

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

  • Follow-Ups:
    • Re: Re: Why does NSTableView stop responding to validateMenuItem: ?
      • From: email@hidden
References: 
 >Why does NSTableView stop responding to validateMenuItem: ? (From: email@hidden)
 >Re: Why does NSTableView stop responding to validateMenuItem: ? (From: Andy Lee <email@hidden>)
 >Re: Why does NSTableView stop responding to validateMenuItem: ? (From: Doug Knowles <email@hidden>)

  • Prev by Date: Re: -finstrument-functions and program startup
  • Next by Date: Re: [Solved - duh!] Core data storage of objects whose class is loaded from a bundle
  • Previous by thread: Re: Why does NSTableView stop responding to validateMenuItem: ?
  • Next by thread: Re: Re: Why does NSTableView stop responding to validateMenuItem: ?
  • Index(es):
    • Date
    • Thread