NSOutlineView Bindings
Action Invocation Bindings
doubleClickArgument
A multiple-value binding that specifies the object passed as a parameter to the selector when NSOutlineView
receives a double click.
When doubleClickArgument
is bound, a new binding, doubleClickArgument2
, is exposed and can be bound. Binding to doubleClickArgument2
causes doubleClickArgument3
to be exposed, and so on.
The objects specified in the doubleClickArgument
bindings are passed as parameters to the selector specified in the doubleClickTarget
binding when the NSOutlineView
is double clicked.
doubleClickTarget
An object that receives a message corresponding to selector name
when the NSOutlineView
is double clicked.
Availability Bindings
enabled
A multiple-value binding that determines if the NSOutlineView
is enabled in the user interface.
When enabled
is bound, a new binding, enabled2
, is exposed and can be bound. Binding to enabled2
causes enabled3
to be exposed, and so on.
The NSOutlineView
is enabled if a logical AND operation on all the enabled
bindings results in a Boolean value of YES
.
hidden
A multiple-value binding that determines if the NSOutlineView
is displayed in the user interface.
When hidden
is bound, a new binding, hidden2
, is exposed and can be bound. Binding to hidden2
causes hidden3
to be exposed, and so on.
The NSOutlineView
is hidden if a logical OR operation on all the hidden
bindings results in a Boolean value of YES
.
Font Bindings
font
An NSFont used to display the NSOutlineView
.
If font
is bound, all other Font category bindings are disabled.
fontBold
A Boolean value that determines if the NSFont used to display the NSOutlineView
is bold. If fontBold
evaluates to YES
, the bold attribute is added to the font.
If fontBold
is bound, the font
and fontName
bindings are disabled.
fontFamilyName
An NSString that specifies the family name of the NSFont used to display the contents of the NSOutlineView
.
If fontFamilyName
is bound to a key, the font
and fontName
bindings are disabled.
fontItalic
A Boolean value that determines if the NSFont used to display the NSOutlineView
is italic. If fontItalic
evaluates to YES
, the italic attribute is added to the font.
If fontItalic
is bound, the font
and fontName
bindings are disabled.
fontName
An NSString that specifies the full name of the NSFont that is used to display the contents of the NSOutlineView
. The full font name includes the family and the style of the font — for example, "Helvetica-Bold".
If fontName
bound to a key, the font
, fontBold
, fontFamilyName
and fontItalic
bindings are disabled.
fontSize
An integer value that determines the size, in points, of the font used to display the NSOutlineView
.
If fontSize
is bound, the font
binding is disabled.
Outline View Content Bindings
content
An NSTreeController instance that provides the content of the NSOutlineView
.
Unless contentValues
is also bound, the titles of the items in the NSOutlineView
are derived by invoking the description
method for each of the content objects.
If you bind the content
explicitly rather than binding a column of the NSOutlineView
to the controller, you must also explicitly bind the selectionIndexPaths
and sortDescriptors
to the controller.
selectionIndexPaths
An array of NSIndexPath instances that specify the current selection in the NSOutlineView
.
sortDescriptors
An indexed collection of NSSortDescriptor instances that specify the sort ordering of the contents of the NSOutlineView
.
The indexed collection is an NSArray instance or subclass, or a property that is accessible using the key-value-coding indexed accessor methods.
Typically this binding is created automatically, binding to the sort descriptors of the NSArrayController of the initially bound NSTableColumn.
Parameters Bindings
rowHeight
An integer value that specifies the height, in pixels, of a row in the NSOutlineView
.
toolTip
An NSString that contains the tool tip to display for this NSOutlineView
.
Copyright © 2004, 2014 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2014-07-15