Search code examples
cocoabuttonstatecocoa-bindings

How do I bind the enabled binding of a button to whether or not an NSArrayController has a selection?


I want to bind the enabled state of an NSButton to whether or not an NSArrayController has any selected items.

How do I do this?


Solution

  • Another option is to bind to selectedObjects.@count