NSCell

Authors

Scott Christley( scottc@net-community.com )
The abstract cell class

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

Software documentation for the NSCell class

NSCell : NSObject

Declared: AppKit/NSCell.h
Conform: NSCopying
Conform: NSCoding

defaultMenu

+ (NSMenu*) defaultMenu;


prefersTrackingUntilMouseUp

+ (BOOL) prefersTrackingUntilMouseUp;


acceptsFirstResponder

- (BOOL) acceptsFirstResponder;


action

- (SEL) action;


alignment

- (NSTextAlignment) alignment;


allowsEditingTextAttributes

- (BOOL) allowsEditingTextAttributes;


allowsMixedState

- (BOOL) allowsMixedState;


attributedStringValue

- (NSAttributedString*) attributedStringValue;


calcDrawInfo:

- (void) calcDrawInfo: (NSRect)aRect;


cellAttribute:

- (int) cellAttribute: (NSCellAttribute)aParameter;


cellSize

- (NSSize) cellSize;


cellSizeForBounds:

- (NSSize) cellSizeForBounds: (NSRect)aRect;


compare:

- (NSComparisonResult) compare: (id)otherCell;


continueTracking:at:inView:

- (BOOL) continueTracking: (NSPoint)lastPoint at: (NSPoint)currentPoint inView: (NSView*)controlView;


controlView

- (NSView*) controlView;


doubleValue

- (double) doubleValue;


drawInteriorWithFrame:inView:

- (void) drawInteriorWithFrame: (NSRect)cellFrame inView: (NSView*)controlView;


drawWithFrame:inView:

- (void) drawWithFrame: (NSRect)cellFrame inView: (NSView*)controlView;


drawingRectForBounds:

- (NSRect) drawingRectForBounds: (NSRect)theRect;


editWithFrame:inView:editor:delegate:event:

- (void) editWithFrame: (NSRect)aRect inView: (NSView*)controlView editor: (NSText*)textObject delegate: (id)anObject event: (NSEvent*)theEvent;


encodeWithCoder:

- (void) encodeWithCoder: (NSCoder*)aCoder;


endEditing:

- (void) endEditing: (NSText*)textObject;


entryType

- (int) entryType;


floatValue

- (float) floatValue;


font

- (NSFont*) font;


formatter

- (id) formatter;


getPeriodicDelay:interval:

- (void) getPeriodicDelay: (float*)delay interval: (float*)interval;


hasValidObjectValue

- (BOOL) hasValidObjectValue;


highlight:withFrame:inView:

- (void) highlight: (BOOL)lit withFrame: (NSRect)cellFrame inView: (NSView*)controlView;


image

- (NSImage*) image;


imageRectForBounds:

- (NSRect) imageRectForBounds: (NSRect)theRect;


importsGraphics

- (BOOL) importsGraphics;


initImageCell:

- (id) initImageCell: (NSImage*)anImage;


initTextCell:

- (id) initTextCell: (NSString*)aString;


initWithCoder:

- (id) initWithCoder: (NSCoder*)aDecoder;


intValue

- (int) intValue;


isBezeled

- (BOOL) isBezeled;


isBordered

- (BOOL) isBordered;


isContinuous

- (BOOL) isContinuous;


isEditable

- (BOOL) isEditable;


isEnabled

- (BOOL) isEnabled;


isEntryAcceptable:

- (BOOL) isEntryAcceptable: (NSString*)aString;


isHighlighted

- (BOOL) isHighlighted;


isOpaque

- (BOOL) isOpaque;


isScrollable

- (BOOL) isScrollable;


isSelectable

- (BOOL) isSelectable;


keyEquivalent

- (NSString*) keyEquivalent;


menu

- (NSMenu*) menu;


menuForEvent:inRect:ofView:

- (NSMenu*) menuForEvent: (NSEvent*)anEvent inRect: (NSRect)cellFrame ofView: (NSView*)aView;


mnemonic

- (NSString*) mnemonic;


mnemonicLocation

- (unsigned int) mnemonicLocation;


mouseDownFlags

- (int) mouseDownFlags;


nextState

- (int) nextState;


objectValue

- (id) objectValue;


performClick:

- (void) performClick: (id)sender;


refusesFirstResponder

- (BOOL) refusesFirstResponder;


representedObject

- (id) representedObject;


resetCursorRect:inView:

- (void) resetCursorRect: (NSRect)cellFrame inView: (NSView*)controlView;


selectWithFrame:inView:editor:delegate:start:length:

- (void) selectWithFrame: (NSRect)aRect inView: (NSView*)controlView editor: (NSText*)textObject delegate: (id)anObject start: (int)selStart length: (int)selLength;


sendActionOn:

- (int) sendActionOn: (int)mask;


sendsActionOnEndEditing

- (BOOL) sendsActionOnEndEditing;


setAction:

- (void) setAction: (SEL)aSelector;


setAlignment:

- (void) setAlignment: (NSTextAlignment)mode;


setAllowsEditingTextAttributes:

- (void) setAllowsEditingTextAttributes: (BOOL)flag;


setAllowsMixedState:

- (void) setAllowsMixedState: (BOOL)flag;


setAttributedStringValue:

- (void) setAttributedStringValue: (NSAttributedString*)attribStr;


setBezeled:

- (void) setBezeled: (BOOL)flag;


setBordered:

- (void) setBordered: (BOOL)flag;


setCellAttribute:to:

- (void) setCellAttribute: (NSCellAttribute)aParameter to: (int)value;


setContinuous:

- (void) setContinuous: (BOOL)flag;


setDoubleValue:

- (void) setDoubleValue: (double)aDouble;


setEditable:

- (void) setEditable: (BOOL)flag;


setEnabled:

- (void) setEnabled: (BOOL)flag;


setEntryType:

- (void) setEntryType: (int)aType;


setFloatValue:

- (void) setFloatValue: (float)aFloat;


setFloatingPointFormat:left:right:

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


setFont:

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


setFormatter:

- (void) setFormatter: (NSFormatter*)newFormatter;


setImage:

- (void) setImage: (NSImage*)anImage;


setImportsGraphics:

- (void) setImportsGraphics: (BOOL)flag;


setIntValue:

- (void) setIntValue: (int)anInt;


setMenu:

- (void) setMenu: (NSMenu*)aMenu;


setMnemonicLocation:

- (void) setMnemonicLocation: (unsigned int)location;


setNextState

- (void) setNextState;


setObjectValue:

- (void) setObjectValue: (id)object;


setRefusesFirstResponder:

- (void) setRefusesFirstResponder: (BOOL)flag;


setRepresentedObject:

- (void) setRepresentedObject: (id)anObject;


setScrollable:

- (void) setScrollable: (BOOL)flag;


setSelectable:

- (void) setSelectable: (BOOL)flag;


setSendsActionOnEndEditing:

- (void) setSendsActionOnEndEditing: (BOOL)flag;


setShowsFirstResponder:

- (void) setShowsFirstResponder: (BOOL)flag;


setState:

- (void) setState: (int)value;


setStringValue:

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


setTag:

- (void) setTag: (int)anInt;


setTarget:

- (void) setTarget: (id)anObject;


setTitleWithMnemonic:

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


setType:

- (void) setType: (NSCellType)aType;


setUpFieldEditorAttributes:

- (NSText*) setUpFieldEditorAttributes: (NSText*)textObject;


setWraps:

- (void) setWraps: (BOOL)flag;


showsFirstResponder

- (BOOL) showsFirstResponder;


startTrackingAt:inView:

- (BOOL) startTrackingAt: (NSPoint)startPoint inView: (NSView*)controlView;


state

- (int) state;


stopTracking:at:inView:mouseIsUp:

- (void) stopTracking: (NSPoint)lastPoint at: (NSPoint)stopPoint inView: (NSView*)controlView mouseIsUp: (BOOL)flag;


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;


titleRectForBounds:

- (NSRect) titleRectForBounds: (NSRect)theRect;


trackMouse:inRect:ofView:untilMouseUp:

- (BOOL) trackMouse: (NSEvent*)theEvent inRect: (NSRect)cellFrame ofView: (NSView*)controlView untilMouseUp: (BOOL)flag;


type

- (NSCellType) type;


wraps

- (BOOL) wraps;


Software documentation for the NSCell(PrivateMethods) category

NSCell(PrivateMethods)

Declared: AppKit/NSCell.h

_drawAttributedText:inFrame:

- (void) _drawAttributedText: (NSAttributedString*)title inFrame: (NSRect)cellFrame;


_drawText:inFrame:

- (void) _drawText: (NSString*)title inFrame: (NSRect)cellFrame;


_nonAutoreleasedTypingAttributes

- (NSMutableDictionary*) _nonAutoreleasedTypingAttributes;


_sizeText:

- (NSSize) _sizeText: (NSString*)title;


textColor

- (NSColor*) textColor;