Cocoa Key Value Bindings: What are the explanations of the various options for Controller Key?

前端 未结 4 773
醉梦人生
醉梦人生 2021-01-31 22:45

When I bind a control to an NSArrayController using Interface Builder, there are a variety of options under the \"Controller Key\" field in the bindings inspector.

I und

4条回答
  •  半阙折子戏
    2021-01-31 22:49

    Have a look at the Interface Builder User Guide, there is a section "Connection and Bindings" with a table 7-1 in which it reads:

    Controller Key: An attribute of an NSController object. When binding to an NSController object, you use this field to select the first entry in the key path. The menu associated with this field displays the properties available on the selected controller object as a convenience. You can type the name of the property or simply select it from the provided list.

提交回复
热议问题