0

I am in "the Binding Inspector" of my button, but I don't know how to put the right information.

IB

  • I guess I have to enter information only for "Target" (not for Argument
  • I bind it to "Array Controller"

But then ? I have the choice between four subsections, and don't know which one to choose !

  • Controller Key ???
  • Model Key Path ???
  • Value Transformer ???
  • or : Selector Name ???

My guess would go with "Selector Name", but Xcode doesn't give any autocompletion...

(I want to call the method selectNext)

Thank you !

Colas
  • 3,473
  • 4
  • 29
  • 68

1 Answers1

1

You can not bind from Button to ArrayController.

You can Drag from ArrayController to the button.

Or,

Select ArrayController -> connection's Inspector -> Recieved Actions -> Hook "selectNext:" to the button.

Anoop Vaidya
  • 46,283
  • 15
  • 111
  • 140
  • Thanks !! Is it logical that I cannot do that ? What's the "Action Invocation" panel in the binding's inspector of a button ? – Colas Mar 20 '13 at 15:27
  • 1
    @Colas: It's for when you want to set the button's target and/or action dynamically at run time—e.g., have the button's target be whichever object is selected. – Peter Hosey Mar 20 '13 at 22:11