Instance Method

setAutorecalculatesContentBorderThickness:forEdge:

Specifies whether the window calculates the thickness of a given border automatically.

Declaration

- (void)setAutorecalculatesContentBorderThickness:(BOOL)flag forEdge:(NSRectEdge)edge;

Parameters

flag

If YES, the window calculates the thickness of the edge automatically; if NO, it does not.

edge

The border to set auto-recalculation on or off:

  • NSMaxYEdge: Top border.

  • NSMinYEdge: Bottom border.

Discussion

Turning off a border’s auto-recalculation status sets its border thickness to 0.0.

In a nontextured window calling setAutorecalculatesContentBorderThickness: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:.

See Also

Configuring Windows

- toggleFullScreen:

Takes the window into or out of fullscreen mode,

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.

alphaValue

The window’s alpha value.

backgroundColor

The color of the window’s background.

colorSpace

The window’s color space.

contentView

The window’s content view, the highest accessible NSView object in the window’s view hierarchy.

contentViewController

The main content view controller for the window.

canHide

A Boolean value that indicates whether the window can be hidden when its application becomes hidden (during execution of the NSApplicationhide: 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.

collectionBehavior

A value that identifies the window’s behavior in window collections.

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.

- autorecalculatesContentBorderThicknessForEdge:

Indicates whether the window calculates the thickness of a given border automatically.

- contentBorderThicknessForEdge:

Indicates the thickness of a given border of the window.

- setContentBorderThickness:forEdge:

Specifies the thickness of a given border of the window.

delegate

The window’s delegate.

preventsApplicationTerminationWhenModal

A Boolean value that indicates whether the window prevents application termination when modal.