• 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: Bindings for dynamically populated menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bindings for dynamically populated menu


  • Subject: Re: Bindings for dynamically populated menu
  • From: Jerry Krinock <email@hidden>
  • Date: Mon, 07 Apr 2014 07:01:19 -0700

On 2014 Apr 07, at 03:49, Michael Starke <email@hidden> wrote:

> If wanting to build a menu on the fly I've been using the menuNeedsUpdate delegate method.

Michael’s advice is correct.

Cocoa Bindings are useful to magically keep visible user interface elements in sync with data, although the magic comes with some pain, sometimes quite considerable.  But menus only appear when the user clicks on them and disappear when the mouse goes up.  Therefore it is natural to update menus, with menuNeedsUpdate:, when clicked, and there is no need to update them when they are not visible.  Conclusion: Using Cocoa Bindings on menus is all pain for no gain.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Bindings for dynamically populated menu
      • From: Sean McBride <email@hidden>
References: 
 >Bindings for dynamically populated menu (From: Jonathan Taylor <email@hidden>)
 >Re: Bindings for dynamically populated menu (From: Jonathan Taylor <email@hidden>)
 >Re: Bindings for dynamically populated menu (From: Michael Starke <email@hidden>)

  • Prev by Date: Re: Bindings for dynamically populated menu
  • Next by Date: NSOperation subclass with abstract class?
  • Previous by thread: Re: Bindings for dynamically populated menu
  • Next by thread: Re: Bindings for dynamically populated menu
  • Index(es):
    • Date
    • Thread