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

NSForm 

Inherits From:	NSMatrix : NSControl : NSView : NSResponder : NSObject 

Declared In:	appkit/NSForm.h 

Laying Out the Form 

- (NSFormCell *)addEntry:(NSString *)title	Adds and returns a new entry with title as its title at the end of the Form.
- (NSFormCell *)insertEntry:(NSString *)title	Inserts a new entry at index with title as its title.
atIndex:(int)index	
- (void)removeEntryAtIndex:(int)index	Removes the entry at index.
- (void)setInterlineSpacing:(float)spacing	Sets the spacing between entries to spacing.

Finding Indices

- (int)indexOfCellWithTag:(int)aTag	Returns the index for the entry with tag aTag.
- (int)indexOfSelectedItem	Returns the index of the currently selected entry.

Modifying Graphic Attributes 

- (void)setBezeled:(BOOL)flag	Sets whether entries have a bezeled border.
- (void)setBordered:(BOOL)flag	Sets whether the entries have a plain border.
- (void)setTextAlignment:(int)mode	Sets how text is aligned within the entries to mode.
- (void)setTextFont:(NSFont *)fontObject	Sets the font used to draw entry text to fontObject.
- (void)setTitleAlignment:(NSTextAlignment)mode
	Sets how titles are aligned to mode.
- (void)setTitleFont:(NSFont *)fontObject	Sets the font used to draw entry titles to fontObject.

Getting a Cell 

- (id)cellAtIndex:(int)index	Returns the Cell at index.

Displaying a Cell

- (void)drawCellAtIndex:(int)index	Displays the Cell at the specified index.

Setting and Getting Item Titles 

- (void)setTitle:(NSString *)aString	Sets the title of the entry at index to aString. 
atIndex:(int)index	
- (NSString *)titleAtIndex:(int)index	Returns the title of the entry at index.

Editing Text 

- (void)selectTextAtIndex:(int)index	Selects the text in the entry at index.

Resizing the Form 

- (void)setEntryWidth:(float)width	Sets the width of all the entries (including the title part) to width.