• 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
Contextual menu validateMenuItem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Contextual menu validateMenuItem


  • Subject: Contextual menu validateMenuItem
  • From: Mark Woollard <email@hidden>
  • Date: Sun, 2 Nov 2003 17:05:39 +0000

I have a document with a parent window and attached drawer, on that drawer I've put an NSOutlineView with a contextual menu (menu in nib, link menu outlet of NSOutlineView to the menu). The menu appears fine on ctrl-click but I can't figure out where I need to put the validateMenuItem method so I can control the menu's appearance. I have entered appropriate actions in First Responder and linked the menus items to these. I have tried putting implementations of these actions along with in both the Files Owner (NSDocument) and the drawer controller and in either case validateMenuItem isn't called.

Where should the validate routine go? Or do I have to manually update the menu's appearance?

Thanks
Mark
_______________________________________________
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.

  • Follow-Ups:
    • Re: Contextual menu validateMenuItem
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: tableView Drag and Drop frustration
  • Next by Date: Setting a horizontal divider in an NSOutlineView
  • Previous by thread: Re: NSButton w Image not redrawing
  • Next by thread: Re: Contextual menu validateMenuItem
  • Index(es):
    • Date
    • Thread