• 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: Creating popup button's menu at the last moment
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating popup button's menu at the last moment


  • Subject: Re: Creating popup button's menu at the last moment
  • From: Steven Kramer <email@hidden>
  • Date: Thu, 16 Sep 2004 21:10:41 +0200



Try setting a delegate on the menu and implement menuNeedsUpdate in the delegate. Should work too.

   Steven

Op 16-sep-04 om 18:53 heeft Harilaos Skiadas het volgende geschreven:

Listen to the NSPopUpButtonWillPopUpNotification and
update the >popup
when notified.

/Martin

Thanks, that did it. I knew there had to be a simple answer. By the way, I am wondering, what's the conseptual reason for the NSPopUpButton to not have a delegate? It would seem reasonable to me for the button to ask its delegate at runtime: "I am about to pop up. what should my menu be?". It is not needed before that time anyway, right?

Haris



__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden


_______________________________________________ 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
  • Follow-Ups:
    • Re: Creating popup button's menu at the last moment
      • From: Harilaos Skiadas <email@hidden>
References: 
 >Re: Creating popup button's menu at the last moment (From: Harilaos Skiadas <email@hidden>)

  • Prev by Date: Re: Global hotkeys
  • Next by Date: Re: NSAppKitVersionNumber for 10.3.0?
  • Previous by thread: Re: Creating popup button's menu at the last moment
  • Next by thread: Re: Creating popup button's menu at the last moment
  • Index(es):
    • Date
    • Thread