• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: size of contextual menu items
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >size of contextual menu items (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: size of contextual menu items
  • Next by Date: passing parameters to an AppleScript from Objective-C
  • Previous by thread: Re: size of contextual menu items
  • Next by thread: Creating NSViews with code.
  • Index(es):
    • Date
    • Thread