Re: Bindings for dynamically populated menu

2014-04-10 Thread Jerry Krinock
On 2014 Apr 09, at 10:22, Sean McBride wrote: > A menu's selection is always visible, and I've found bindings on popup menus > can be useful to deal with the selection. If the object represented by the > popup's selection is deleted (by some other piece of UI) then the popup's > selection ca

Re: Bindings for dynamically populated menu

2014-04-09 Thread Sean McBride
On Mon, 7 Apr 2014 07:01:19 -0700, Jerry Krinock said: >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 th

Re: Bindings for dynamically populated menu

2014-04-07 Thread Jerry Krinock
On 2014 Apr 07, at 03:49, Michael Starke 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

Re: Bindings for dynamically populated menu

2014-04-07 Thread Michael Starke
If wanting to build a menu on the fly I've been using the menuNeedsUpdate delegate method. The docs clearly state you can add/remove items this way. https://developer.apple.com/library/mac/documentation/cocoa/reference/NSMenuDelegate_Protocol/Reference/Reference.html#//apple_ref/occ/intfm/NSMenu

Re: Bindings for dynamically populated menu

2014-04-07 Thread Jonathan Taylor
On 7 Apr 2014, at 11:25, Keith J. Schultz wrote: > Hi Jonny, > > try Menu items on the fly! > > To my knowledge you can not use IB! Thanks for your reply keith. I hadn't tried those search terms, but no that didn't get me anything relevant either. All I could find was one old thread in which