Bindings to enable a menu item based on an array's element count

2014-09-07 Thread Daryle Walker
My web-browser app makes menu items with paired submenus for each day that has WebHistoryItem instances. It’s done with a custom coordinator object that publishes a KVO-compliant array, each element a menu item with a submenu. I made another coordinator object to handle Today’s history items. I

Re: Bindings to enable a menu item based on an array's element count

2014-09-07 Thread Ken Thomases
On Sep 7, 2014, at 5:15 AM, Daryle Walker wrote: > Right now, the menu item that holds the submenu where the overflow menu items > go is always visible. I was thinking of controlling its visibility with Cocoa > Bindings. I select the menu item in the Interface Builder part of Xcode, go > to th

Responder Chain Confusion

2014-09-07 Thread dangerwillrobinsondanger
Hi all I just spent a bit of time poking around the responder chain and nil targeted actions. I built a view controller and a view hierarchy with controls that should be configurable. When instantiating the view controller the interface allows configuring the action SEL of the controls. Reuse

Re: Responder Chain Confusion

2014-09-07 Thread Keary Suska
On Sep 7, 2014, at 10:24 AM, dangerwillrobinsondan...@gmail.com wrote: > I just spent a bit of time poking around the responder chain and nil targeted > actions. > I built a view controller and a view hierarchy with controls that should be > configurable. > When instantiating the view controll

Re: Responder Chain Confusion

2014-09-07 Thread Kyle Sluder
On Sep 7, 2014, at 9:24 AM, dangerwillrobinsondan...@gmail.com wrote: > > Hi all > > I just spent a bit of time poking around the responder chain and nil targeted > actions. > I built a view controller and a view hierarchy with controls that should be > configurable. > When instantiating the

Re: Bindings to enable a menu item based on an array's element count

2014-09-07 Thread Daryle Walker
On Sep 7, 2014, at 7:02 AM, Ken Thomases wrote: > On Sep 7, 2014, at 5:15 AM, Daryle Walker wrote: > >> Right now, the menu item that holds the submenu where the overflow menu >> items go is always visible. I was thinking of controlling its visibility >> with Cocoa Bindings. I select the menu

Re: Bindings to enable a menu item based on an array's element count

2014-09-07 Thread Ken Thomases
On Sep 7, 2014, at 2:09 PM, Daryle Walker wrote: > Putting “my2ndCoordinator.overflowArray” gives me a red exclamation stop-sign > in the text field […]. Appending a “.@count” gives a grey exclamation > stop-sign with a tool-tip of: “Xcode cannot resolve the entered keypath”. Proceed anyway.

Re: Bindings to enable a menu item based on an array's element count

2014-09-07 Thread Daryle Walker
On Sep 7, 2014, at 3:53 PM, Ken Thomases wrote: > On Sep 7, 2014, at 2:09 PM, Daryle Walker wrote: > >> Putting “my2ndCoordinator.overflowArray” gives me a red exclamation >> stop-sign in the text field […]. Appending a “.@count” gives a grey >> exclamation stop-sign with a tool-tip of: “Xcod

Re: Responder Chain Confusion

2014-09-07 Thread dangerwillrobinsondanger
>> On 2014/09/08, at 3:16, Kyle Sluder wrote: >> >> On Sep 7, 2014, at 9:24 AM, dangerwillrobinsondan...@gmail.com wrote: >> >> Hi all >> >> I just spent a bit of time poking around the responder chain and nil >> targeted actions. >> I built a view controller and a view hierarchy with con

Re: Responder Chain Confusion

2014-09-07 Thread John Joyce
On 2014/09/08, at 8:49, dangerwillrobinsondan...@gmail.com wrote: > > > > >>> On 2014/09/08, at 3:16, Kyle Sluder wrote: >>> >>> On Sep 7, 2014, at 9:24 AM, dangerwillrobinsondan...@gmail.com wrote: >>> >>> Hi all >>> >>> I just spent a bit of time poking around the responder chain and ni

Add bindings for custom menu items' isHidden to (an attribute of) a custom object?

2014-09-07 Thread Daryle Walker
Yesterday, I had a thread ( “Bindings to enable a menu item based on an array's element count”) on this list on how to add a Binding to a menu item’s Hidden flag based on the length of a custom object’s array-based property. I got the code working. There is a menu item for each day that has Web