O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

NSForm — Mac OS X 10.0

Synopsis

This subclass of NSMatrix implements an interface component that is a stack of NSFormCells, which are a type of cell that represents a titled text entry field.

image with no caption

@interface NSForm : NSMatrix
                                  // Accessor Methods
   - (void)setTitleAlignment:(NSTextAlignment)mode;
   - (void)setEntryWidth:(float)width;
   - (void)setInterlineSpacing:(float)spacing;
   - (void)setBordered:(BOOL)flag;
   - (void)setBezeled:(BOOL)flag;
   - (void)setTitleFont:(NSFont *)fontObj;
   - (void)setTextFont:(NSFont *)fontObj;
   - (void)setTextAlignment:(int)mode;
                                  // Instance Methods
   - (NSFormCell *)addEntry:(NSString *)title;
   - (NSFormCell *)insertEntry:(NSString *)title 
                                 atIndex:(int)index;
   - (id)cellAtIndex:(int)index;
   - (int)indexOfCellWithTag:(int)aTag;
   - (int)indexOfSelectedItem;
   - (void)removeEntryAtIndex:(int)index;
   - (void)selectTextAtIndex:(int)index;
   - (void)drawCellAtIndex:(int)index;

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required