Re: Attaching a menu to a view
Re: Attaching a menu to a view
- Subject: Re: Attaching a menu to a view
- From: Cristi Savu <email@hidden>
- Date: Thu, 1 Jan 1970 02:08:01 +0200
Check NSMenu's
+ (void)popUpContextMenu:(NSMenu*)menu withEvent:(NSEvent*)event
forView:(NSView*)view
Be careful, this is a class method.
Regards, Cristian
On Thursday, November 14, 2002, at 11:02 PM, Yong Lee wrote:
>
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.
_______________________________________________
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.