dynamic NSPopUpButton

  • Is it possible to dynamically change the menu associated with
    NSPopUpButton?

    For example: first I create 3 Menus

    NSMenu *m1;
    NSMenu *m2;
    NSMenu *m3;

    instead of mucking with adding and removing menuItems in the menu of
    NSPopUpButton, is it possible to just install the entire menu from one of
    the 3 created above?

    I see an accessor "- (NSMenu *)menu()" in the NSPopUpButton API. Is there
    such a thing as "setmenu"?

    Jake
previous month november 2001 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    
Go to today