• 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 in a Modal Dialog
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Contextual menu in a Modal Dialog


  • Subject: Contextual menu in a Modal Dialog
  • From: "Anthony Cheung" <email@hidden>
  • Date: Fri, 18 Jul 2003 11:24:17 +0800

Dear all,

I got a question which I hope you can give some hints.

I have implemented an application which will bring up a modal dialog. In the
modal dialog, it contains a NSImageView. I have added a contextual menu on the
NSImageView. I linked each item in the menu with an action in the modal dialog
class. I have implemented validateMenuItem: method. When I run the
application, I got no problem to pop up the contextual menu from my modal
dialog. However, all menu items are disabled. I have checked that it hasn't
called validateMenuItem: method. I don't know what I have done wrong as I
successfully implement a contextual menu on my main application window.

Please advise.

Many thanks for your response.

Regards,

Anthony
_______________________________________________
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: encryption problems
  • Next by Date: Re: Hiding an NSMenu, or making keyboard shortcuts not tied to a menu item?
  • Previous by thread: encryption problems
  • Next by thread: _NSDrawWindowBackgroundRegion bombs
  • Index(es):
    • Date
    • Thread