NSWindow Bindings
Parameters Bindings
contentHeight
A float
value that specifies the height of the NSWindow
's content view. The height is expressed in the NSWindow
's base coordinate system. Changing this value alters the size of the NSWindow
.
contentWidth
A float
value that specifies the width of the NSWindow
's content view. The width is expressed in the NSWindow
's base coordinate system. Changing this value alters the size of the NSWindow
.
documentEdited
A Boolean value that specifies if the NSWindow
's document has been edited and not saved.
The documentEdited
binding should evaluate to YES
if the NSWindow
's content needs to be saved.
visible
A Boolean value that specifies if the NSWindow
is visible.
If visible
evaluates to YES
, the NSWindow
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 NSWindow
.
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 NSWindow
.
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 NSWindow
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