Attaching a menu to a view
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.