• 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
dynamic NSPopUpButton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

dynamic NSPopUpButton


  • Subject: dynamic NSPopUpButton
  • From: Jake <email@hidden>
  • Date: Tue, 6 Nov 2001 00:35:56 -0500 (EST)

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


  • Prev by Date: Simple Animation
  • Next by Date: Re: File Icon
  • Previous by thread: Simple Animation
  • Next by thread: Re: Authorization.h
  • Index(es):
    • Date
    • Thread