Re: size of contextual menu items
Re: size of contextual menu items
- Subject: Re: size of contextual menu items
- From: stephane sudre <email@hidden>
- Date: Wed, 16 Feb 2005 18:05:10 +0100
On Feb 16, 2005, at 5:46 PM, Matt Neuburg wrote:
I have an NSOutlineView with a contextual menu, and an NSPopupMenu, in
the
same window. The NSOutlineView's contextual menu *is* the
NSPopupMenu's menu
(rather like how, in the Finder, you can do something through a
contextual
menu or through the "tool" popup at the top of the window).
The NSPopupMenu is small, so its menu is small. This is fine with me,
and
when the user chooses the contextual menu (control-click on the
outline), it
is small too. This is also fine with me.
Here's the problem. The FIRST time the user chooses the contextual
menu, IF
the user has not previously chosen the popup menu, the contextual menu
is
NOT small (it's big). Clearly what's going on is that the first time
the
user chooses the popup menu, that act causes the popup menu's size (and
hence the contextual menu's size, since they are the same menu) to
small.
I don't see either how to set the menu size to small or how to "seed"
the
process so that the contextual menu is small even if the user chooses
it
without first having chosen the popup menu. Anyone know? I've tried
disconnecting the outline's menu and reconnecting it (in code) but it
didn't
help. Thx - m.
There's a hidden method in the AppKit. IIRC, the class is
NSCarbonMenuImpl. A class-dump on the AppKit should help.
_______________________________________________
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