Re: Bindings for dynamically populated menu
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