• 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
NSTableView and validateMenuItem:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView and validateMenuItem:


  • Subject: NSTableView and validateMenuItem:
  • From: Keith Renz <email@hidden>
  • Date: Wed, 7 May 2003 00:30:31 -0400

Please tell me if this is the best route...

I want to validate the Select All menu item for an NSTableView. NSTableView responds to the selectAll: action before my NSController subclass, so I need to subclass NSTableView in order to implement validateMenuItem: for the selectAll: selector. It appears that NSTableView does not implement validateMenuItem:, so there's no need to call super from my subclass if my subclass doesn't handle a selector (like Print, which NSTableView also responds to). (If I do, I get an exception.) I would prefer to disconnect selectAll: from my NSTableView subclass and handle validation through my NSController subclass (like other Edit menu items), but I'm not sure how to do this, or if I did, if it's a good idea.

Thanks,

Keith
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: NSNetServiceBrowser
  • Next by Date: Re: How do I create and use a framework...
  • Previous by thread: Re: NSNetServiceBrowser
  • Next by thread: dismissing an NSAlertPanel programmatically
  • Index(es):
    • Date
    • Thread