(Preliminary Documentation) Copyright ã1994 by NeXT Computer, Inc.  All Rights Reserved.

NSBox 

Inherits From:	NSView : NSResponder : NSObject 

Declared In:	appkit/NSBox.h 

Initializing an NSBox 

- (id)initWithFrame:(NSRect)frameRect	Initializes a new NSBox object with the given frameRect.

Getting and Modifying the Border and Title 

- (NSRect)borderRect	Returns the rectangle in which the border is drawn.
- (NSBorderType)borderType	Returns the box's border type.
- (void)setBorderType:(NSBorderType)aType	Sets the box's border to aType.
- (void)setTitle:(NSString *)aString	Sets the box's title to aString.
- (void)setTitleFont:(NSFont *)fontObj	Sets the NSFont of the title to fontObj.
- (void)setTitlePosition:(NSTitlePosition)aPosition
	Sets the position of the title to aPosition.
- (NSString *)title	Returns the title of the box.
- (id)titleCell	Returns the Cell used to draw the title.
- (NSFont *)titleFont	Returns the NSFont used to draw the title.
- (NSTitlePosition)titlePosition	Returns the position of the title.
- (NSRect)titleRect	Returns the rectangle in which the title is drawn.

Setting and Placing the Content View 

- (id)contentView	Returns the content view.
- (NSSize)contentViewMargins	Gets the distances between the border and the content view.
- (void)setContentView:(NSView *)aView	Replaces the NSBox's content view with aView.
- (void)setContentViewMargins:(NSSize)offsetSize
	Sets the distances between the border and the content view to the horizontal and vertical amounts in offsetSize.

Resizing the Box 

- (void)setFrameFromContentFrame:(NSRect)contentFrame
	Resizes the box to accommodate contentFrame.
- (void)sizeToFit	Resizes the box to exactly enclose its subviews.