NSPopUpButton doesn't show list when used inside a menu item

  • Hi,
    I have a regular menu (File menu) for my app. One of the menu items (New
    ...)  is a custom view , which happens to contain a NSPopUpButton (i.e.
    simple drop down). I create that by linking / connecting (Ctrl + drag) the
    "New..." item to my custom view. At runtime,  the drop down is correctly
    populated, but when i click the arrow to show the list of values, it doesn't
    expand. It works fine when used in the default window of my application.

    Is it possible to have a PopUpButton inside a MenuItem itself? Thanks very
    much for the feedback.

    P.S: A combo box control also doesn't open / expand when used in a
    menuitem.

    Angel
  • Recursive menu tracking? I can't say I'm surprised that this doesn't work :)
    Honestly I have to say that this sounds like a really weird UI. I would
    consider a more normal approach (submenus?)

    Angel Todorov wrote:
    > Hi,
    > I have a regular menu (File menu) for my app. One of the menu items (New
    > ...)  is a custom view , which happens to contain a NSPopUpButton (i.e.
    > simple drop down). I create that by linking / connecting (Ctrl + drag) the
    > "New..." item to my custom view. At runtime,  the drop down is correctly
    > populated, but when i click the arrow to show the list of values, it doesn't
    > expand. It works fine when used in the default window of my application.
    >
    > Is it possible to have a PopUpButton inside a MenuItem itself? Thanks very
    > much for the feedback.
    >
    > P.S: A combo box control also doesn't open / expand when used in a
    > menuitem.
    >
    > Angel
    >
  • On 1 May '08, at 2:12 PM, Angel Todorov wrote:

    > I have a regular menu (File menu) for my app. One of the menu items
    > (New
    > ...)  is a custom view , which happens to contain a NSPopUpButton
    > (i.e.
    > simple drop down).

    Um, that's ... weird. I suggest you use a regular submenu instead.
    Many apps have one of those for the New command, when they can create
    several types of new documents.

    Putting a custom control in a menu, that does the same job as an
    existing mechanism, but differently, it just going to make your app
    look inconsistent and confusing.

    —Jens
previous month may 2008 next month
MTWTFSS
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  
Go to today