Class: NSBox Description: NSBox is a container view
capable of drawing a border and title around its
content. It is often used to group related interface
elements visually and semantically. Instance
Variables: _cell - The underlying cell used for
drawing. _content_view - The view contained inside
the box. _offsets - Margins between the border and the
content. _border_rect - Rectangle defining the area
of the border. _title_rect - Rectangle defining the area
of the title. _border_type - Type of border drawn (line,
bezel, etc). _title_position - Position of the title
relative to the border. _box_type - General
appearance of the box. _fill_color - Fill color
(only if NSBoxCustom). _border_color - Border color
(only if NSBoxCustom). _border_width - Width of the
border (only if NSBoxCustom). _corner_radius - Corner
radius for rounded borders (only if NSBoxCustom).
_transparent - Determines whether the box is
drawn transparently.
Returns an NSSize containing the interior margins
of the receiver. An NSBox's content view margins are
empty space that is subtracted from the top,
bottom, and sides as padding between the inside
of the box and the frame of its content view.
Sets the border type to aType, resizes
the content view frame if needed, and marks self for
display. See
NSBorderType
for more informations The default boder type is
NSGrooveBorder
.
Sets the content view to aView. The
current content view is replaced by
-replaceSubview:with:
. So you should
-retain
the current view if you want to use it later. The
contentView frame is resized if needed.
Sets the NSSize containing the interior margins to
offsetSize. An NSBox's content view
margins are empty space that is subtracted from
the top, bottom, and sides as padding between the
inside of the box and the frame of its content
view
Sets the title cell position to aPosition
, resizes the content view frame if needed and marks
self for display. See
NSTitlePosition
for more information. The default position is
NSAtTop
.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.