• 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
Attaching a menu to a view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Attaching a menu to a view


  • Subject: Attaching a menu to a view
  • From: Yong Lee <email@hidden>
  • Date: Thu, 14 Nov 2002 13:02:52 -0800

How do you attach a menu to a view?

The view method - (NSMenu *)menuForEvent:(NSEvent *)theEvent
or
responder method - (void)setMenu:(NSMenu *)aMenu

only seems to work when the control key is pressed (as a contextual
menu). Is there a way for menu to appear when the view is clicked
without a modifier key?

Thanks,

Yong
_______________________________________________
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: Attaching a menu to a view
      • From: Ryan Stevens <email@hidden>
  • Prev by Date: Uneditable Nibs...
  • Next by Date: Re: Low-level equivalent of NSLock?
  • Previous by thread: Uneditable Nibs...
  • Next by thread: Re: Attaching a menu to a view
  • Index(es):
    • Date
    • Thread