NSPanel Bindings
Parameters Bindings
contentHeight
A float
value that specifies the height of the NSPanel
's content view. The height is expressed in the NSPanel
's base coordinate system. Changing this value alters the size of the NSPanel
.
contentWidth
A float
value that specifies the width of the NSPanel
's content view. The width is expressed in the NSPanel
's base coordinate system. Changing this value alters the size of the NSPanel
.
documentEdited
A Boolean value that specifies if the NSPanel
's document has been edited and not saved.
The documentEdited
binding should evaluate to YES
if the NSPanel
's content needs to be saved.
visible
A Boolean value that specifies if the NSPanel
is visible.
If visible
evaluates to YES
, the NSPanel
is visible.
Title Bindings
representedFilename
An NSString that contains the name of the file that the window represents.
title
An NSString value that is displayed in the title bar of the NSPanel
.
Title With Pattern Bindings
displayPatternTitle1
A multiple-value binding that specifies a string value that replaces %{title1}@
in a display pattern string that is used to set the title of the NSPanel
.
When displayPatternTitle1
is bound, a new binding, displayPatternTitle2
, is exposed and can be bound. Binding to displayPatternTitle2
causes displayPatternTitle3
to be exposed, and so on.
The Display Pattern binding option is an NSString that is used as the pattern string. The appropriate displayPatternTitleX
binding value is substituted for the %{titleX}@
pattern in the display string.
As an example, if displayPatternTitle1
evaluates to 22
, displayPatternTitle2
evaluates to 5
and the Display Pattern string is "%{title2}@ of %{title1}@ rows are selected"
, the resulting NSPanel
title will be "5 of 22 rows are selected".
If displayPatternTitle1
is bound, the title
and representedFilename
bindings are not available.
Copyright © 2004, 2014 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2014-07-15