Context menu over WebView always showing up in bottom left corner of screen
Context menu over WebView always showing up in bottom left corner of screen
- Subject: Context menu over WebView always showing up in bottom left corner of screen
- From: Jonas Oberschweiber <email@hidden>
- Date: Mon, 7 Aug 2006 13:49:55 +0200
Hi,
In my app, I have a WebView (subclassed) over which I want to display
a context menu. To do that, I create a new NSEvent with the
properties of an older one and set the location to [self
frame].origin, which should make it show up in some corner of the
WebView, but when I call [NSMenu popUpContextMenu:aMenu
withEvent:aEvent forView:self] the menu appears in the bottom left
corner of the screens. I already tried several different locations
and tried to call [NSMenu popUpContextMenu:aMenu withEvent:aEvent
forView:[self superview]].
Is there anybody who has had the same problem and/or knows how to
solve it?
Best Regards
Jonas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden