NSControl

Authors

Scott Christley( scottc@net-community.com )
Richard Frith-Macdonald( richard@brainstorm.co.uk )
The abstract control class

Copyright: (C) 1996 Free Software Foundation, Inc.

Software documentation for the NSControl class

NSControl : NSView

Declared: AppKit/NSControl.h

cellClass

+ (Class) cellClass;


setCellClass:

+ (void) setCellClass: (Class)factoryId;


abortEditing

- (BOOL) abortEditing;


action

- (SEL) action;


alignment

- (NSTextAlignment) alignment;


calcSize

- (void) calcSize;


cell

- (id) cell;


currentEditor

- (NSText*) currentEditor;


doubleValue

- (double) doubleValue;


drawCell:

- (void) drawCell: (NSCell*)aCell;


drawCellInside:

- (void) drawCellInside: (NSCell*)aCell;


floatValue

- (float) floatValue;


font

- (NSFont*) font;


ignoresMultiClick

- (BOOL) ignoresMultiClick;


initWithFrame:

- (id) initWithFrame: (NSRect)frameRect;


intValue

- (int) intValue;


isContinuous

- (BOOL) isContinuous;


isEnabled

- (BOOL) isEnabled;


mouseDown:

- (void) mouseDown: (NSEvent*)theEvent;


objectValue

- (id) objectValue;


performClick:

- (void) performClick: (id)sender;


refusesFirstResponder

- (BOOL) refusesFirstResponder;


selectCell:

- (void) selectCell: (NSCell*)aCell;


selectedCell

- (id) selectedCell;


selectedTag

- (int) selectedTag;


sendAction:to:

- (BOOL) sendAction: (SEL)theAction to: (id)theTarget;


sendActionOn:

- (int) sendActionOn: (int)mask;


setAction:

- (void) setAction: (SEL)aSelector;


setAlignment:

- (void) setAlignment: (NSTextAlignment)mode;


setCell:

- (void) setCell: (NSCell*)aCell;


setContinuous:

- (void) setContinuous: (BOOL)flag;


setDoubleValue:

- (void) setDoubleValue: (double)aDouble;


setEnabled:

- (void) setEnabled: (BOOL)flag;


setFloatValue:

- (void) setFloatValue: (float)aFloat;


setFloatingPointFormat:left:right:

- (void) setFloatingPointFormat: (BOOL)autoRange left: (unsigned)leftDigits right: (unsigned)rightDigits;


setFont:

- (void) setFont: (NSFont*)fontObject;


setIgnoresMultiClick:

- (void) setIgnoresMultiClick: (BOOL)flag;


setIntValue:

- (void) setIntValue: (int)anInt;


setNeedsDisplay

- (void) setNeedsDisplay;


setObjectValue:

- (void) setObjectValue: (id)anObject;


setRefusesFirstResponder:

- (void) setRefusesFirstResponder: (BOOL)flag;


setStringValue:

- (void) setStringValue: (NSString*)aString;


setTag:

- (void) setTag: (int)anInt;


setTarget:

- (void) setTarget: (id)anObject;


sizeToFit

- (void) sizeToFit;


stringValue

- (NSString*) stringValue;


tag

- (int) tag;


takeDoubleValueFrom:

- (void) takeDoubleValueFrom: (id)sender;


takeFloatValueFrom:

- (void) takeFloatValueFrom: (id)sender;


takeIntValueFrom:

- (void) takeIntValueFrom: (id)sender;


takeObjectValueFrom:

- (void) takeObjectValueFrom: (id)sender;


takeStringValueFrom:

- (void) takeStringValueFrom: (id)sender;


target

- (id) target;


updateCell:

- (void) updateCell: (NSCell*)aCell;


updateCellInside:

- (void) updateCellInside: (NSCell*)aCell;


validateEditing

- (void) validateEditing;


Software documentation for the NSObject(NSControlDelegate) category

NSObject(NSControlDelegate)

Declared: AppKit/NSControl.h

control:didFailToFormatString:errorDescription:

- (BOOL) control: (NSControl*)control didFailToFormatString: (NSString*)string errorDescription: (NSString*)error;


control:didFailToValidatePartialString:errorDescription:

- (void) control: (NSControl*)control didFailToValidatePartialString: (NSString*)string errorDescription: (NSString*)error;


control:isValidObject:

- (BOOL) control: (NSControl*)control isValidObject: (id)object;


control:textShouldBeginEditing:

- (BOOL) control: (NSControl*)control textShouldBeginEditing: (NSText*)fieldEditor;


control:textShouldEndEditing:

- (BOOL) control: (NSControl*)control textShouldEndEditing: (NSText*)fieldEditor;


controlTextDidBeginEditing:

- (void) controlTextDidBeginEditing: (NSNotification*)aNotification;


controlTextDidChange:

- (void) controlTextDidChange: (NSNotification*)aNotification;


controlTextDidEndEditing:

- (void) controlTextDidEndEditing: (NSNotification*)aNotification;