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

Re: Contextual menu validateMenuItem


  • Subject: Re: Contextual menu validateMenuItem
  • From: Nick Zitzmann <email@hidden>
  • Date: Sun, 2 Nov 2003 13:38:42 -0800

On Nov 2, 2003, at 9:05 AM, Mark Woollard wrote:

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.

You need to write it into the target object of the menu's action.

I have entered appropriate actions in First Responder and linked the menus items to these.

In that case, you'll need to validate them within the NSResponder object(s), since "First Responder" is a moving target if your program uses more than one responder.

Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page: http://seiryu.home.comcast.net/
S/MIME signature available upon request

"I have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone." - Bjarne Stroustrup
_______________________________________________
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.
References: 
 >Contextual menu validateMenuItem (From: Mark Woollard <email@hidden>)

  • Prev by Date: Re: Setting a horizontal divider in an NSOutlineView
  • Next by Date: Re: NSMailDelivery
  • Previous by thread: Contextual menu validateMenuItem
  • Next by thread: Setting a horizontal divider in an NSOutlineView
  • Index(es):
    • Date
    • Thread