size of contextual menu items
size of contextual menu items
- Subject: size of contextual menu items
- From: Matt Neuburg <email@hidden>
- Date: Wed, 16 Feb 2005 08:46:37 -0800
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.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>
_______________________________________________
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