Up
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.
- Declared in:
- AppKit/NSControl.h
Standards:
Description forthcoming.
Instance Variables
Method summary
+ (Class) cellClass;
Description forthcoming.
+ (void) setCellClass: (Class)factoryId;
Description forthcoming.
- (BOOL) abortEditing;
Description forthcoming.
- (SEL) action;
Description forthcoming.
- (NSTextAlignment) alignment;
Description forthcoming.
- (NSAttributedString*) attributedStringValue;
Description forthcoming.
- (void) calcSize;
Description forthcoming.
- (id) cell;
Description forthcoming.
- (NSText*) currentEditor;
Description forthcoming.
- (double) doubleValue;
Description forthcoming.
- (void) drawCell: (NSCell*)aCell;
Description forthcoming.
- (void) drawCellInside: (NSCell*)aCell;
Description forthcoming.
- (float) floatValue;
Description forthcoming.
- (NSFont*) font;
Description forthcoming.
- (id) formatter;
Description forthcoming.
- (BOOL) ignoresMultiClick;
Description forthcoming.
- (int) intValue;
Description forthcoming.
- (BOOL) isContinuous;
Description forthcoming.
- (BOOL) isEnabled;
Description forthcoming.
- (void) mouseDown: (NSEvent*)theEvent;
Description forthcoming.
- (id) objectValue;
Description forthcoming.
- (void) performClick: (id)sender;
Simulates a single mouse click on the control.
This method calls the cell's method
performClickWithFrame:inView:.
Take note that sender is not used.
- (BOOL) refusesFirstResponder;
Description forthcoming.
- (void) selectCell: (NSCell*)aCell;
Description forthcoming.
- (id) selectedCell;
Description forthcoming.
- (int) selectedTag;
Description forthcoming.
- (BOOL) sendAction: (SEL)theAction to: (id)theTarget;
Description forthcoming.
- (int) sendActionOn: (int)mask;
Description forthcoming.
- (void) setAction: (SEL)aSelector;
Description forthcoming.
- (void) setAlignment: (NSTextAlignment)mode;
Description forthcoming.
- (void) setAttributedStringValue: (NSAttributedString*)attribStr;
Description forthcoming.
- (void) setCell: (NSCell*)aCell;
Description forthcoming.
- (void) setContinuous: (BOOL)flag;
Description forthcoming.
- (void) setDoubleValue: (double)aDouble;
Description forthcoming.
- (void) setEnabled: (BOOL)flag;
Description forthcoming.
- (void) setFloatValue: (float)aFloat;
Description forthcoming.
- (void) setFloatingPointFormat: (BOOL)autoRange left: (unsigned)leftDigits right: (unsigned)rightDigits;
Description forthcoming.
- (void) setFont: (NSFont*)fontObject;
Description forthcoming.
- (void) setFormatter: (NSFormatter*)newFormatter;
Description forthcoming.
- (void) setIgnoresMultiClick: (BOOL)flag;
Description forthcoming.
- (void) setIntValue: (int)anInt;
Description forthcoming.
- (void) setNeedsDisplay;
Description forthcoming.
- (void) setObjectValue: (id)anObject;
Description forthcoming.
- (void) setRefusesFirstResponder: (BOOL)flag;
Description forthcoming.
- (void) setStringValue: (NSString*)aString;
Description forthcoming.
- (void) setTag: (int)anInt;
Description forthcoming.
- (void) setTarget: (id)anObject;
Description forthcoming.
- (void) sizeToFit;
Description forthcoming.
- (NSString*) stringValue;
Description forthcoming.
- (int) tag;
Description forthcoming.
- (void) takeDoubleValueFrom: (id)sender;
Description forthcoming.
- (void) takeFloatValueFrom: (id)sender;
Description forthcoming.
- (void) takeIntValueFrom: (id)sender;
Description forthcoming.
- (void) takeObjectValueFrom: (id)sender;
Description forthcoming.
- (void) takeStringValueFrom: (id)sender;
Description forthcoming.
- (id) target;
Description forthcoming.
- (void) updateCell: (NSCell*)aCell;
Description forthcoming.
- (void) updateCellInside: (NSCell*)aCell;
Description forthcoming.
- (void) validateEditing;
Description forthcoming.
Instance Variables for NSControl Class
@protected id _cell;
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.
@protected BOOL _ignoresMultiClick;
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.
@protected int _tag;
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.
- Declared in:
- AppKit/NSControl.h
Standards:
Description forthcoming.
Method summary
- (BOOL) control: (NSControl*)control didFailToFormatString: (NSString*)string errorDescription: (NSString*)error;
Description forthcoming.
- (void) control: (NSControl*)control didFailToValidatePartialString: (NSString*)string errorDescription: (NSString*)error;
Description forthcoming.
- (BOOL) control: (NSControl*)control isValidObject: (id)object;
Description forthcoming.
- (BOOL) control: (NSControl*)control textShouldBeginEditing: (NSText*)fieldEditor;
Description forthcoming.
- (BOOL) control: (NSControl*)control textShouldEndEditing: (NSText*)fieldEditor;
Description forthcoming.
- (NSArray*) control: (NSControl*)control textView: (NSTextView*)textView completions: (NSArray*)words forPartialWordRange: (NSRange)charRange indexOfSelectedItem: (int*)index;
Description forthcoming.
- (BOOL) control: (NSControl*)control textView: (NSTextView*)textView doCommandBySelector: (SEL)command;
Description forthcoming.
- (void) controlTextDidBeginEditing: (NSNotification*)aNotification;
Description forthcoming.
- (void) controlTextDidChange: (NSNotification*)aNotification;
Description forthcoming.
- (void) controlTextDidEndEditing: (NSNotification*)aNotification;
Description forthcoming.
Up