libs-gui/Documentation/gsdoc/NSCell.html

759 lines
18 KiB
HTML
Raw Normal View History

<html>
<head>
<title>NSCell</title>
</head>
<body>
<h1>NSCell</h1>
<h3>Authors</h3>
<dl>
<dt>Scott Christley(<a href="mailto:scottc@net-community.com"><code>
scottc@net-community.com
</code></a>)</dt>
<dd>
</dd>
</dl>
<blockquote>
The abstract cell class </blockquote>
<p>Copyright: (C) 1996 Free Software Foundation, Inc.</p>
<h1>
Software documentation for the NSCell class
</h1>
<h2><a name="class$NSCell">NSCell</a> : NSObject</h2>
Declared: AppKit/NSCell.h<br />
Conform: NSCopying<br />
Conform: NSCoding<br />
<p>
</p>
<h3>defaultMenu</a></h3>
+ (<a href="NSMenu.html#class$NSMenu">NSMenu</a>*) <b>defaultMenu</b>;<br />
<p>
</p>
<hr />
<h3>prefersTrackingUntilMouseUp</a></h3>
+ (BOOL) <b>prefersTrackingUntilMouseUp</b>;<br />
<p>
</p>
<hr />
<h3>acceptsFirstResponder</a></h3>
- (BOOL) <b>acceptsFirstResponder</b>;<br />
<p>
</p>
<hr />
<h3>action</a></h3>
- (SEL) <b>action</b>;<br />
<p>
</p>
<hr />
<h3>alignment</a></h3>
- (NSTextAlignment) <b>alignment</b>;<br />
<p>
</p>
<hr />
<h3>allowsEditingTextAttributes</a></h3>
- (BOOL) <b>allowsEditingTextAttributes</b>;<br />
<p>
</p>
<hr />
<h3>allowsMixedState</a></h3>
- (BOOL) <b>allowsMixedState</b>;<br />
<p>
</p>
<hr />
<h3>attributedStringValue</a></h3>
- (NSAttributedString*) <b>attributedStringValue</b>;<br />
<p>
</p>
<hr />
<h3>calcDrawInfo:</a></h3>
- (void) <b>calcDrawInfo:</b> (NSRect)aRect;<br />
<p>
</p>
<hr />
<h3>cellAttribute:</a></h3>
- (int) <b>cellAttribute:</b> (NSCellAttribute)aParameter;<br />
<p>
</p>
<hr />
<h3>cellSize</a></h3>
- (NSSize) <b>cellSize</b>;<br />
<p>
</p>
<hr />
<h3>cellSizeForBounds:</a></h3>
- (NSSize) <b>cellSizeForBounds:</b> (NSRect)aRect;<br />
<p>
</p>
<hr />
<h3>compare:</a></h3>
- (NSComparisonResult) <b>compare:</b> (id)otherCell;<br />
<p>
</p>
<hr />
<h3>continueTracking:at:inView:</a></h3>
- (BOOL) <b>continueTracking:</b> (NSPoint)lastPoint<b> at:</b> (NSPoint)currentPoint<b> inView:</b> (<a href="NSView.html#class$NSView">NSView</a>*)controlView;<br />
<p>
</p>
<hr />
<h3>controlView</a></h3>
- (<a href="NSView.html#class$NSView">NSView</a>*) <b>controlView</b>;<br />
<p>
</p>
<hr />
<h3>doubleValue</a></h3>
- (double) <b>doubleValue</b>;<br />
<p>
</p>
<hr />
<h3>drawInteriorWithFrame:inView:</a></h3>
- (void) <b>drawInteriorWithFrame:</b> (NSRect)cellFrame<b> inView:</b> (<a href="NSView.html#class$NSView">NSView</a>*)controlView;<br />
<p>
</p>
<hr />
<h3>drawWithFrame:inView:</a></h3>
- (void) <b>drawWithFrame:</b> (NSRect)cellFrame<b> inView:</b> (<a href="NSView.html#class$NSView">NSView</a>*)controlView;<br />
<p>
</p>
<hr />
<h3>drawingRectForBounds:</a></h3>
- (NSRect) <b>drawingRectForBounds:</b> (NSRect)theRect;<br />
<p>
</p>
<hr />
<h3>editWithFrame:inView:editor:delegate:event:</a></h3>
- (void) <b>editWithFrame:</b> (NSRect)aRect<b> inView:</b> (<a href="NSView.html#class$NSView">NSView</a>*)controlView<b> editor:</b> (<a href="NSText.html#class$NSText">NSText</a>*)textObject<b> delegate:</b> (id)anObject<b> event:</b> (<a href="NSEvent.html#class$NSEvent">NSEvent</a>*)theEvent;<br />
<p>
</p>
<hr />
<h3>encodeWithCoder:</a></h3>
- (void) <b>encodeWithCoder:</b> (NSCoder*)aCoder;<br />
<p>
</p>
<hr />
<h3>endEditing:</a></h3>
- (void) <b>endEditing:</b> (<a href="NSText.html#class$NSText">NSText</a>*)textObject;<br />
<p>
</p>
<hr />
<h3>entryType</a></h3>
- (int) <b>entryType</b>;<br />
<p>
</p>
<hr />
<h3>floatValue</a></h3>
- (float) <b>floatValue</b>;<br />
<p>
</p>
<hr />
<h3>font</a></h3>
- (<a href="NSFont.html#class$NSFont">NSFont</a>*) <b>font</b>;<br />
<p>
</p>
<hr />
<h3>formatter</a></h3>
- (id) <b>formatter</b>;<br />
<p>
</p>
<hr />
<h3>getPeriodicDelay:interval:</a></h3>
- (void) <b>getPeriodicDelay:</b> (float*)delay<b> interval:</b> (float*)interval;<br />
<p>
</p>
<hr />
<h3>hasValidObjectValue</a></h3>
- (BOOL) <b>hasValidObjectValue</b>;<br />
<p>
</p>
<hr />
<h3>highlight:withFrame:inView:</a></h3>
- (void) <b>highlight:</b> (BOOL)lit<b> withFrame:</b> (NSRect)cellFrame<b> inView:</b> (<a href="NSView.html#class$NSView">NSView</a>*)controlView;<br />
<p>
</p>
<hr />
<h3>image</a></h3>
- (<a href="NSImage.html#class$NSImage">NSImage</a>*) <b>image</b>;<br />
<p>
</p>
<hr />
<h3>imageRectForBounds:</a></h3>
- (NSRect) <b>imageRectForBounds:</b> (NSRect)theRect;<br />
<p>
</p>
<hr />
<h3>importsGraphics</a></h3>
- (BOOL) <b>importsGraphics</b>;<br />
<p>
</p>
<hr />
<h3>initImageCell:</a></h3>
- (id) <b>initImageCell:</b> (<a href="NSImage.html#class$NSImage">NSImage</a>*)anImage;<br />
<p>
</p>
<hr />
<h3>initTextCell:</a></h3>
- (id) <b>initTextCell:</b> (NSString*)aString;<br />
<p>
</p>
<hr />
<h3>initWithCoder:</a></h3>
- (id) <b>initWithCoder:</b> (NSCoder*)aDecoder;<br />
<p>
</p>
<hr />
<h3>intValue</a></h3>
- (int) <b>intValue</b>;<br />
<p>
</p>
<hr />
<h3>isBezeled</a></h3>
- (BOOL) <b>isBezeled</b>;<br />
<p>
</p>
<hr />
<h3>isBordered</a></h3>
- (BOOL) <b>isBordered</b>;<br />
<p>
</p>
<hr />
<h3>isContinuous</a></h3>
- (BOOL) <b>isContinuous</b>;<br />
<p>
</p>
<hr />
<h3>isEditable</a></h3>
- (BOOL) <b>isEditable</b>;<br />
<p>
</p>
<hr />
<h3>isEnabled</a></h3>
- (BOOL) <b>isEnabled</b>;<br />
<p>
</p>
<hr />
<h3>isEntryAcceptable:</a></h3>
- (BOOL) <b>isEntryAcceptable:</b> (NSString*)aString;<br />
<p>
</p>
<hr />
<h3>isHighlighted</a></h3>
- (BOOL) <b>isHighlighted</b>;<br />
<p>
</p>
<hr />
<h3>isOpaque</a></h3>
- (BOOL) <b>isOpaque</b>;<br />
<p>
</p>
<hr />
<h3>isScrollable</a></h3>
- (BOOL) <b>isScrollable</b>;<br />
<p>
</p>
<hr />
<h3>isSelectable</a></h3>
- (BOOL) <b>isSelectable</b>;<br />
<p>
</p>
<hr />
<h3>keyEquivalent</a></h3>
- (NSString*) <b>keyEquivalent</b>;<br />
<p>
</p>
<hr />
<h3>menu</a></h3>
- (<a href="NSMenu.html#class$NSMenu">NSMenu</a>*) <b>menu</b>;<br />
<p>
</p>
<hr />
<h3>menuForEvent:inRect:ofView:</a></h3>
- (<a href="NSMenu.html#class$NSMenu">NSMenu</a>*) <b>menuForEvent:</b> (<a href="NSEvent.html#class$NSEvent">NSEvent</a>*)anEvent<b> inRect:</b> (NSRect)cellFrame<b> ofView:</b> (<a href="NSView.html#class$NSView">NSView</a>*)aView;<br />
<p>
</p>
<hr />
<h3>mnemonic</a></h3>
- (NSString*) <b>mnemonic</b>;<br />
<p>
</p>
<hr />
<h3>mnemonicLocation</a></h3>
- (unsigned int) <b>mnemonicLocation</b>;<br />
<p>
</p>
<hr />
<h3>mouseDownFlags</a></h3>
- (int) <b>mouseDownFlags</b>;<br />
<p>
</p>
<hr />
<h3>nextState</a></h3>
- (int) <b>nextState</b>;<br />
<p>
</p>
<hr />
<h3>objectValue</a></h3>
- (id) <b>objectValue</b>;<br />
<p>
</p>
<hr />
<h3>performClick:</a></h3>
- (void) <b>performClick:</b> (id)sender;<br />
<p>
</p>
<hr />
<h3>refusesFirstResponder</a></h3>
- (BOOL) <b>refusesFirstResponder</b>;<br />
<p>
</p>
<hr />
<h3>representedObject</a></h3>
- (id) <b>representedObject</b>;<br />
<p>
</p>
<hr />
<h3>resetCursorRect:inView:</a></h3>
- (void) <b>resetCursorRect:</b> (NSRect)cellFrame<b> inView:</b> (<a href="NSView.html#class$NSView">NSView</a>*)controlView;<br />
<p>
</p>
<hr />
<h3>selectWithFrame:inView:editor:delegate:start:length:</a></h3>
- (void) <b>selectWithFrame:</b> (NSRect)aRect<b> inView:</b> (<a href="NSView.html#class$NSView">NSView</a>*)controlView<b> editor:</b> (<a href="NSText.html#class$NSText">NSText</a>*)textObject<b> delegate:</b> (id)anObject<b> start:</b> (int)selStart<b> length:</b> (int)selLength;<br />
<p>
</p>
<hr />
<h3>sendActionOn:</a></h3>
- (int) <b>sendActionOn:</b> (int)mask;<br />
<p>
</p>
<hr />
<h3>sendsActionOnEndEditing</a></h3>
- (BOOL) <b>sendsActionOnEndEditing</b>;<br />
<p>
</p>
<hr />
<h3>setAction:</a></h3>
- (void) <b>setAction:</b> (SEL)aSelector;<br />
<p>
</p>
<hr />
<h3>setAlignment:</a></h3>
- (void) <b>setAlignment:</b> (NSTextAlignment)mode;<br />
<p>
</p>
<hr />
<h3>setAllowsEditingTextAttributes:</a></h3>
- (void) <b>setAllowsEditingTextAttributes:</b> (BOOL)flag;<br />
<p>
</p>
<hr />
<h3>setAllowsMixedState:</a></h3>
- (void) <b>setAllowsMixedState:</b> (BOOL)flag;<br />
<p>
</p>
<hr />
<h3>setAttributedStringValue:</a></h3>
- (void) <b>setAttributedStringValue:</b> (NSAttributedString*)attribStr;<br />
<p>
</p>
<hr />
<h3>setBezeled:</a></h3>
- (void) <b>setBezeled:</b> (BOOL)flag;<br />
<p>
</p>
<hr />
<h3>setBordered:</a></h3>
- (void) <b>setBordered:</b> (BOOL)flag;<br />
<p>
</p>
<hr />
<h3>setCellAttribute:to:</a></h3>
- (void) <b>setCellAttribute:</b> (NSCellAttribute)aParameter<b> to:</b> (int)value;<br />
<p>
</p>
<hr />
<h3>setContinuous:</a></h3>
- (void) <b>setContinuous:</b> (BOOL)flag;<br />
<p>
</p>
<hr />
<h3>setDoubleValue:</a></h3>
- (void) <b>setDoubleValue:</b> (double)aDouble;<br />
<p>
</p>
<hr />
<h3>setEditable:</a></h3>
- (void) <b>setEditable:</b> (BOOL)flag;<br />
<p>
</p>
<hr />
<h3>setEnabled:</a></h3>
- (void) <b>setEnabled:</b> (BOOL)flag;<br />
<p>
</p>
<hr />
<h3>setEntryType:</a></h3>
- (void) <b>setEntryType:</b> (int)aType;<br />
<p>
</p>
<hr />
<h3>setFloatValue:</a></h3>
- (void) <b>setFloatValue:</b> (float)aFloat;<br />
<p>
</p>
<hr />
<h3>setFloatingPointFormat:left:right:</a></h3>
- (void) <b>setFloatingPointFormat:</b> (BOOL)autoRange<b> left:</b> (unsigned int)leftDigits<b> right:</b> (unsigned int)rightDigits;<br />
<p>
</p>
<hr />
<h3>setFont:</a></h3>
- (void) <b>setFont:</b> (<a href="NSFont.html#class$NSFont">NSFont</a>*)fontObject;<br />
<p>
</p>
<hr />
<h3>setFormatter:</a></h3>
- (void) <b>setFormatter:</b> (NSFormatter*)newFormatter;<br />
<p>
</p>
<hr />
<h3>setImage:</a></h3>
- (void) <b>setImage:</b> (<a href="NSImage.html#class$NSImage">NSImage</a>*)anImage;<br />
<p>
</p>
<hr />
<h3>setImportsGraphics:</a></h3>
- (void) <b>setImportsGraphics:</b> (BOOL)flag;<br />
<p>
</p>
<hr />
<h3>setIntValue:</a></h3>
- (void) <b>setIntValue:</b> (int)anInt;<br />
<p>
</p>
<hr />
<h3>setMenu:</a></h3>
- (void) <b>setMenu:</b> (<a href="NSMenu.html#class$NSMenu">NSMenu</a>*)aMenu;<br />
<p>
</p>
<hr />
<h3>setMnemonicLocation:</a></h3>
- (void) <b>setMnemonicLocation:</b> (unsigned int)location;<br />
<p>
</p>
<hr />
<h3>setNextState</a></h3>
- (void) <b>setNextState</b>;<br />
<p>
</p>
<hr />
<h3>setObjectValue:</a></h3>
- (void) <b>setObjectValue:</b> (id)object;<br />
<p>
</p>
<hr />
<h3>setRefusesFirstResponder:</a></h3>
- (void) <b>setRefusesFirstResponder:</b> (BOOL)flag;<br />
<p>
</p>
<hr />
<h3>setRepresentedObject:</a></h3>
- (void) <b>setRepresentedObject:</b> (id)anObject;<br />
<p>
</p>
<hr />
<h3>setScrollable:</a></h3>
- (void) <b>setScrollable:</b> (BOOL)flag;<br />
<p>
</p>
<hr />
<h3>setSelectable:</a></h3>
- (void) <b>setSelectable:</b> (BOOL)flag;<br />
<p>
</p>
<hr />
<h3>setSendsActionOnEndEditing:</a></h3>
- (void) <b>setSendsActionOnEndEditing:</b> (BOOL)flag;<br />
<p>
</p>
<hr />
<h3>setShowsFirstResponder:</a></h3>
- (void) <b>setShowsFirstResponder:</b> (BOOL)flag;<br />
<p>
</p>
<hr />
<h3>setState:</a></h3>
- (void) <b>setState:</b> (int)value;<br />
<p>
</p>
<hr />
<h3>setStringValue:</a></h3>
- (void) <b>setStringValue:</b> (NSString*)aString;<br />
<p>
</p>
<hr />
<h3>setTag:</a></h3>
- (void) <b>setTag:</b> (int)anInt;<br />
<p>
</p>
<hr />
<h3>setTarget:</a></h3>
- (void) <b>setTarget:</b> (id)anObject;<br />
<p>
</p>
<hr />
<h3>setTitleWithMnemonic:</a></h3>
- (void) <b>setTitleWithMnemonic:</b> (NSString*)aString;<br />
<p>
</p>
<hr />
<h3>setType:</a></h3>
- (void) <b>setType:</b> (NSCellType)aType;<br />
<p>
</p>
<hr />
<h3>setUpFieldEditorAttributes:</a></h3>
- (<a href="NSText.html#class$NSText">NSText</a>*) <b>setUpFieldEditorAttributes:</b> (<a href="NSText.html#class$NSText">NSText</a>*)textObject;<br />
<p>
</p>
<hr />
<h3>setWraps:</a></h3>
- (void) <b>setWraps:</b> (BOOL)flag;<br />
<p>
</p>
<hr />
<h3>showsFirstResponder</a></h3>
- (BOOL) <b>showsFirstResponder</b>;<br />
<p>
</p>
<hr />
<h3>startTrackingAt:inView:</a></h3>
- (BOOL) <b>startTrackingAt:</b> (NSPoint)startPoint<b> inView:</b> (<a href="NSView.html#class$NSView">NSView</a>*)controlView;<br />
<p>
</p>
<hr />
<h3>state</a></h3>
- (int) <b>state</b>;<br />
<p>
</p>
<hr />
<h3>stopTracking:at:inView:mouseIsUp:</a></h3>
- (void) <b>stopTracking:</b> (NSPoint)lastPoint<b> at:</b> (NSPoint)stopPoint<b> inView:</b> (<a href="NSView.html#class$NSView">NSView</a>*)controlView<b> mouseIsUp:</b> (BOOL)flag;<br />
<p>
</p>
<hr />
<h3>stringValue</a></h3>
- (NSString*) <b>stringValue</b>;<br />
<p>
</p>
<hr />
<h3>tag</a></h3>
- (int) <b>tag</b>;<br />
<p>
</p>
<hr />
<h3>takeDoubleValueFrom:</a></h3>
- (void) <b>takeDoubleValueFrom:</b> (id)sender;<br />
<p>
</p>
<hr />
<h3>takeFloatValueFrom:</a></h3>
- (void) <b>takeFloatValueFrom:</b> (id)sender;<br />
<p>
</p>
<hr />
<h3>takeIntValueFrom:</a></h3>
- (void) <b>takeIntValueFrom:</b> (id)sender;<br />
<p>
</p>
<hr />
<h3>takeObjectValueFrom:</a></h3>
- (void) <b>takeObjectValueFrom:</b> (id)sender;<br />
<p>
</p>
<hr />
<h3>takeStringValueFrom:</a></h3>
- (void) <b>takeStringValueFrom:</b> (id)sender;<br />
<p>
</p>
<hr />
<h3>target</a></h3>
- (id) <b>target</b>;<br />
<p>
</p>
<hr />
<h3>titleRectForBounds:</a></h3>
- (NSRect) <b>titleRectForBounds:</b> (NSRect)theRect;<br />
<p>
</p>
<hr />
<h3>trackMouse:inRect:ofView:untilMouseUp:</a></h3>
- (BOOL) <b>trackMouse:</b> (<a href="NSEvent.html#class$NSEvent">NSEvent</a>*)theEvent<b> inRect:</b> (NSRect)cellFrame<b> ofView:</b> (<a href="NSView.html#class$NSView">NSView</a>*)controlView<b> untilMouseUp:</b> (BOOL)flag;<br />
<p>
</p>
<hr />
<h3>type</a></h3>
- (NSCellType) <b>type</b>;<br />
<p>
</p>
<hr />
<h3>wraps</a></h3>
- (BOOL) <b>wraps</b>;<br />
<p>
</p>
<hr />
<h1>
Software documentation for the NSCell(PrivateMethods)
category
</h1>
<h2><a href="#class$NSCell">NSCell</a>(<a name="category$NSCell(PrivateMethods)">PrivateMethods</a>)</h2>
Declared: AppKit/NSCell.h<br />
<p>
</p>
<h3>_drawAttributedText:inFrame:</a></h3>
- (void) <b>_drawAttributedText:</b> (NSAttributedString*)title<b> inFrame:</b> (NSRect)cellFrame;<br />
<p>
</p>
<hr />
<h3>_drawText:inFrame:</a></h3>
- (void) <b>_drawText:</b> (NSString*)title<b> inFrame:</b> (NSRect)cellFrame;<br />
<p>
</p>
<hr />
<h3>_nonAutoreleasedTypingAttributes</a></h3>
- (NSMutableDictionary*) <b>_nonAutoreleasedTypingAttributes</b>;<br />
<p>
</p>
<hr />
<h3>_sizeText:</a></h3>
- (NSSize) <b>_sizeText:</b> (NSString*)title;<br />
<p>
</p>
<hr />
<h3>textColor</a></h3>
- (<a href="NSColor.html#class$NSColor">NSColor</a>*) <b>textColor</b>;<br />
<p>
</p>
<hr />
</body>
</html>