Instance Method
setContentBorderThickness:forEdge:
Specifies the thickness of a given border of the window.
Parameters
thickness
The thickness for edge
, in points.
edge
The border whose thickness to set:
Discussion
In a nontextured window calling setContentBorderThickness:forEdge:
passing NSMaxYEdge
will raise an exception (in a nontextured window, it’s only valid to set the content border thickness of the bottom edge). It is only valid to set the content border thickness of the top edge in a textured window.
Typically, if you call setContentBorderThickness:forEdge:
, you should also call setAutorecalculatesContentBorderThickness:NO forEdge:
.
The contentBorder
does not include the title bar or toolbar, so a textured window that just wants the gradient in the title bar and toolbar should have a thickness
of 0
for NSMaxYEdge
.
See Also
Configuring Windows
worksWhenModal
A Boolean value that indicates whether the window is able to receive keyboard and mouse events even when some other window is being run modally.
contentView
The window’s content view, the highest accessible NSView
object in the window’s view hierarchy.
canHide
A Boolean value that indicates whether the window can be hidden when its application becomes hidden (during execution of the NSApplication
hide:
method).
onActiveSpace
A Boolean value that indicates whether the window is on the currently active space.
hidesOnDeactivate
A Boolean value that indicates whether the window is removed from the screen when its application becomes inactive.
opaque
A Boolean value that indicates whether the window is opaque.
hasShadow
A Boolean value that indicates whether the window has a shadow.
- invalidateShadow
Invalidates the window shadow so that it is recomputed based on the current window shape.