Up
Authors
- Scott Christley (
scottc@net-community.com
)
-
The abstract cell class
Copyright: (C) 1996 Free Software Foundation, Inc.
- Declared in:
- AppKit/NSCell.h
- Conforms to:
- NSCopying
- NSCoding
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
Instance Variables
Method summary
+ (NSMenu*) defaultMenu;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
+ (BOOL) prefersTrackingUntilMouseUp;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (BOOL) acceptsFirstResponder;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (SEL) action;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (NSTextAlignment) alignment;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (BOOL) allowsEditingTextAttributes;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (BOOL) allowsMixedState;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (NSAttributedString*) attributedStringValue;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) calcDrawInfo: (NSRect)aRect;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (int) cellAttribute: (NSCellAttribute)aParameter;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (NSSize) cellSize;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (NSSize) cellSizeForBounds: (NSRect)aRect;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (NSComparisonResult) compare: (id)otherCell;
Availability: Not in OpenStep/MacOS-X
Compares the reciever to another to another
NSCell. The argument must be an NSCell sublclass
and have the NSCellType NSTextCellType. Returns the
result of the comparison of each cell's stringValue.
- (BOOL) continueTracking: (NSPoint)lastPoint at: (NSPoint)currentPoint inView: (NSView*)controlView;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (NSControlSize) controlSize;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (NSControlTint) controlTint;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (NSView*) controlView;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (double) doubleValue;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) drawInteriorWithFrame: (NSRect)cellFrame inView: (NSView*)controlView;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) drawWithFrame: (NSRect)cellFrame inView: (NSView*)controlView;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (NSRect) drawingRectForBounds: (NSRect)theRect;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) editWithFrame: (NSRect)aRect inView: (NSView*)controlView editor: (NSText*)textObject delegate: (id)anObject event: (NSEvent*)theEvent;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) endEditing: (NSText*)textObject;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (int) entryType;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (float) floatValue;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (NSFont*) font;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (id) formatter;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) getPeriodicDelay: (float*)delay interval: (float*)interval;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (BOOL) hasValidObjectValue;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) highlight: (BOOL)lit withFrame: (NSRect)cellFrame inView: (NSView*)controlView;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (NSColor*) highlightColorWithFrame: (NSRect)cellFrame inView: (NSView*)controlView;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (NSImage*) image;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (NSRect) imageRectForBounds: (NSRect)theRect;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (BOOL) importsGraphics;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (id) initImageCell: (NSImage*)anImage;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (id) initTextCell: (NSString*)aString;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (int) intValue;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (BOOL) isBezeled;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (BOOL) isBordered;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (BOOL) isContinuous;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (BOOL) isEditable;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (BOOL) isEnabled;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (BOOL) isEntryAcceptable: (NSString*)aString;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (BOOL) isHighlighted;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (BOOL) isOpaque;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (BOOL) isScrollable;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (BOOL) isSelectable;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (NSString*) keyEquivalent;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (NSMenu*) menu;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (NSMenu*) menuForEvent: (NSEvent*)anEvent inRect: (NSRect)cellFrame ofView: (NSView*)aView;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (NSString*) mnemonic;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (unsigned int) mnemonicLocation;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (int) mouseDownFlags;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (int) nextState;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (id) objectValue;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) performClick: (id)sender;
Availability: Not in OpenStep/MacOS-X
Simulates a single click in the cell (only works
with controls which have no more than one cell). This
method is deprecated, performClickWithFrame:inView:
is the right method to use now.
- (void) performClickWithFrame: (NSRect)cellFrame inView: (NSView*)controlView;
Availability: Not in OpenStep/MacOS-X
Simulates a single click in the cell. The display
of the cell with this event occurs in the area delimited
by cellFrame within controlView.
- (BOOL) refusesFirstResponder;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (id) representedObject;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) resetCursorRect: (NSRect)cellFrame inView: (NSView*)controlView;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) selectWithFrame: (NSRect)aRect inView: (NSView*)controlView editor: (NSText*)textObject delegate: (id)anObject start: (int)selStart length: (int)selLength;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (int) sendActionOn: (int)mask;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (BOOL) sendsActionOnEndEditing;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) setAction: (SEL)aSelector;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) setAlignment: (NSTextAlignment)mode;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) setAllowsEditingTextAttributes: (BOOL)flag;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) setAllowsMixedState: (BOOL)flag;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) setAttributedStringValue: (NSAttributedString*)attribStr;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) setBezeled: (BOOL)flag;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) setBordered: (BOOL)flag;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) setCellAttribute: (NSCellAttribute)aParameter to: (int)value;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) setContinuous: (BOOL)flag;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) setControlSize: (NSControlSize)controlSize;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) setControlTint: (NSControlTint)controlTint;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) setDoubleValue: (double)aDouble;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) setEditable: (BOOL)flag;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) setEnabled: (BOOL)flag;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) setEntryType: (int)aType;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) setFloatValue: (float)aFloat;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) setFloatingPointFormat: (BOOL)autoRange left: (unsigned int)leftDigits right: (unsigned int)rightDigits;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) setFont: (NSFont*)fontObject;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) setFormatter: (NSFormatter*)newFormatter;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) setHighlighted: (BOOL)flag;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) setImage: (NSImage*)anImage;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) setImportsGraphics: (BOOL)flag;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) setIntValue: (int)anInt;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) setMenu: (NSMenu*)aMenu;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) setMnemonicLocation: (unsigned int)location;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) setNextState;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) setObjectValue: (id)object;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) setRefusesFirstResponder: (BOOL)flag;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) setRepresentedObject: (id)anObject;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) setScrollable: (BOOL)flag;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) setSelectable: (BOOL)flag;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) setSendsActionOnEndEditing: (BOOL)flag;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) setShowsFirstResponder: (BOOL)flag;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) setState: (int)value;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) setStringValue: (NSString*)aString;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) setTag: (int)anInt;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) setTarget: (id)anObject;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) setTitle: (NSString*)aString;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) setTitleWithMnemonic: (NSString*)aString;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) setType: (NSCellType)aType;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (NSText*) setUpFieldEditorAttributes: (NSText*)textObject;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) setWraps: (BOOL)flag;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (BOOL) showsFirstResponder;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (BOOL) startTrackingAt: (NSPoint)startPoint inView: (NSView*)controlView;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (int) state;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) stopTracking: (NSPoint)lastPoint at: (NSPoint)stopPoint inView: (NSView*)controlView mouseIsUp: (BOOL)flag;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (NSString*) stringValue;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (int) tag;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) takeDoubleValueFrom: (id)sender;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) takeFloatValueFrom: (id)sender;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) takeIntValueFrom: (id)sender;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) takeObjectValueFrom: (id)sender;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) takeStringValueFrom: (id)sender;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (id) target;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (NSString*) title;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (NSRect) titleRectForBounds: (NSRect)theRect;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (BOOL) trackMouse: (NSEvent*)theEvent inRect: (NSRect)cellFrame ofView: (NSView*)controlView untilMouseUp: (BOOL)flag;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (NSCellType) type;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (BOOL) wraps;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
Instance Variables for NSCell Class
@protected unsigned int _action_mask;
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 struct GSCellFlagsType _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 NSImage* _cell_image;
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 NSString* _contents;
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 NSFont* _font;
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 NSFormatter* _formatter;
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 NSMenu* _menu;
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 unsigned char _mnemonic_location;
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 unsigned int _mouse_down_flags;
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 id _objectValue;
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 id _represented_object;
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/NSCell.h
Availability: Not in OpenStep/MacOS-X
Warning this category is private,
which means that the methods are for internal use by
the package. You should not use them in external code.
Method summary
- (void) _drawAttributedText: (NSAttributedString*)aString inFrame: (NSRect)aRect;
Availability: Not in OpenStep/MacOS-X
Warning the underscore at the start of the
name of this method indicates that it is private, for
internal use only, and you should not use the
method in your code.
Private internal method
to display an attributed string.
Important: text
should always be vertically centered without
considering descender [as if descender did not
exist]. This is particularly important for single
line texts. Please make sure the output remains always
correct.
- (void) _drawText: (NSString*)aString inFrame: (NSRect)cellFrame;
Availability: Not in OpenStep/MacOS-X
Warning the underscore at the start of the
name of this method indicates that it is private, for
internal use only, and you should not use the
method in your code.
Important: text should
always be vertically centered without considering
descender [as if descender did not exist]. This
is particularly important for single line texts. Please
make sure the output remains always correct.
- (NSDictionary*) _nonAutoreleasedTypingAttributes;
Availability: Not in OpenStep/MacOS-X
Warning the underscore at the start of the
name of this method indicates that it is private, for
internal use only, and you should not use the
method in your code.
- (BOOL) _sendsActionOn: (int)eventTypeMask;
Availability: Not in OpenStep/MacOS-X
Warning the underscore at the start of the
name of this method indicates that it is private, for
internal use only, and you should not use the
method in your code.
- (NSSize) _sizeText: (NSString*)title;
Availability: Not in OpenStep/MacOS-X
Warning the underscore at the start of the
name of this method indicates that it is private, for
internal use only, and you should not use the
method in your code.
- (NSColor*) textColor;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
Up