[SOLVED]Re: Looking for a plug-in to pollute contextual menus
[SOLVED]Re: Looking for a plug-in to pollute contextual menus
- Subject: [SOLVED]Re: Looking for a plug-in to pollute contextual menus
- From: Stéphane Sudre <email@hidden>
- Date: Sat, 2 Oct 2004 18:21:53 +0200
On samedi, octobre 2, 2004, at 05:59 PM, Stéphane Sudre wrote:
Does somebody know a plugin which adds some items to any contextual
menu you display via:
[NSMenu popUpContextMenu:withEvent:forView:];
I need to pollute the contextual menu so that I can see if the hidden
APIs I'm testing are the ones I want (i.e. one which does not add the
contextual items when you popup a menu).
Found both the polluter and the private API I've been looking for:
FWIW, if you want to popup a menu in 10.2.8 (not tested on other OS
versions) and:
1) Use your own font (i.e. you have a small control size)
2) Avoid the Contextual menu items
NSCarbonMenuImpl * tImple;
tImple=[NSCarbonMenuImpl new];
[tImple popUpMenu:[self menu] atLocation:tMouseLoc width:10
forView:self withSelectedItem:0 withFont:[self font]];
[tImple release];
tMouseLoc is in Screen coordinate.
This one shall be public IMHO.
_______________________________________________
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