mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 12:31:00 +00:00
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6444 72102866-910b-0410-8b05-ffd578937521
468 lines
13 KiB
HTML
468 lines
13 KiB
HTML
<html><head>
|
|
<title>NSText</title>
|
|
</head>
|
|
<body>
|
|
<a href="NSTableView.html">[Previous]</a>
|
|
<a href="Gui.html">[Up]</a>
|
|
<a href="NSTextAttachment.html">[Next]</a>
|
|
<h1>NSText</h1>
|
|
<h3>Authors</h3>
|
|
<dl>
|
|
<dt><a href="http://www.gnustep.org/developers/whoiswho.html">Richard Frith-Macdonald</a>
|
|
<dd>
|
|
</dl>
|
|
<p>Version: 0.1</p>
|
|
<p>Date: 28 February, 2000</p>
|
|
<h2><a name="cont-0">NSText</a></h2>
|
|
<h2><a name="NSText">NSText</a></h2>
|
|
<p><b>Declared in:</b> Gui/NSText.h</p>
|
|
<p><b>Inherits from:</b> NSView</p>
|
|
<p><b>Conforms to:</b> NSChangeSpelling
|
|
</p>
|
|
<hr>
|
|
|
|
|
|
<ul>
|
|
<li><a href="NSText.html#method-33">-RTFDFromRange:</a>
|
|
<li><a href="NSText.html#method-0">-alignCenter:</a>
|
|
<li><a href="NSText.html#method-1">-alignLeft:</a>
|
|
<li><a href="NSText.html#method-2">-alignRight:</a>
|
|
<li><a href="NSText.html#method-3">-alignment</a>
|
|
<li><a href="NSText.html#method-4">-backgroundColor</a>
|
|
<li><a href="NSText.html#method-5">-changeFont:</a>
|
|
<li><a href="NSText.html#method-6">-checkSpelling:</a>
|
|
<li><a href="NSText.html#method-7">-copy:</a>
|
|
<li><a href="NSText.html#method-8">-copyFont:</a>
|
|
<li><a href="NSText.html#method-9">-copyRuler:</a>
|
|
<li><a href="NSText.html#method-10">-cut:</a>
|
|
<li><a href="NSText.html#method-11">-delegate</a>
|
|
<li><a href="NSText.html#method-12">-delete:</a>
|
|
<li><a href="NSText.html#method-13">-drawsBackground</a>
|
|
<li><a href="NSText.html#method-14">-font</a>
|
|
<li><a href="NSText.html#method-15">-importsGraphics</a>
|
|
<li><a href="NSText.html#method-16">-initWithFrame:</a>
|
|
<li><a href="NSText.html#method-17">-isEditable</a>
|
|
<li><a href="NSText.html#method-18">-isFieldEditor</a>
|
|
<li><a href="NSText.html#method-19">-isHorizontallyResizable</a>
|
|
<li><a href="NSText.html#method-20">-isRichText</a>
|
|
<li><a href="NSText.html#method-21">-isRulerVisible</a>
|
|
<li><a href="NSText.html#method-22">-isSelectable</a>
|
|
<li><a href="NSText.html#method-23">-isVerticallyResizable</a>
|
|
<li><a href="NSText.html#method-24">-maxSize</a>
|
|
<li><a href="NSText.html#method-25">-minSize</a>
|
|
<li><a href="NSText.html#method-26">-paste:</a>
|
|
<li><a href="NSText.html#method-27">-pasteFont:</a>
|
|
<li><a href="NSText.html#method-28">-pasteRuler:</a>
|
|
<li><a href="NSText.html#method-29">-readRTFDFromFile:</a>
|
|
<li><a href="NSText.html#method-30">-replaceCharactersInRange:withRTF:</a>
|
|
<li><a href="NSText.html#method-31">-replaceCharactersInRange:withRTFD:</a>
|
|
<li><a href="NSText.html#method-32">-replaceCharactersInRange:withString:</a>
|
|
<li><a href="NSText.html#method-34">-scrollRangeToVisible:</a>
|
|
<li><a href="NSText.html#method-35">-selectAll:</a>
|
|
<li><a href="NSText.html#method-36">-selectedRange</a>
|
|
<li><a href="NSText.html#method-37">-setAlignment:</a>
|
|
<li><a href="NSText.html#method-38">-setBackgroundColor:</a>
|
|
<li><a href="NSText.html#method-39">-setDelegate:</a>
|
|
<li><a href="NSText.html#method-40">-setDrawsBackground:</a>
|
|
<li><a href="NSText.html#method-41">-setEditable:</a>
|
|
<li><a href="NSText.html#method-42">-setFieldEditor:</a>
|
|
<li><a href="NSText.html#method-43">-setFont:</a>
|
|
<li><a href="NSText.html#method-44">-setFont:</a>
|
|
<li><a href="NSText.html#method-45">-setHorizontallyResizable:</a>
|
|
<li><a href="NSText.html#method-46">-setImportsGraphics:</a>
|
|
<li><a href="NSText.html#method-47">-setMaxSize:</a>
|
|
<li><a href="NSText.html#method-48">-setMinSize:</a>
|
|
<li><a href="NSText.html#method-49">-setRichText:</a>
|
|
<li><a href="NSText.html#method-50">-setSelectable:</a>
|
|
<li><a href="NSText.html#method-51">-setSelectedRange:</a>
|
|
<li><a href="NSText.html#method-52">-setString:</a>
|
|
<li><a href="NSText.html#method-54">-setTextColor:</a>
|
|
<li><a href="NSText.html#method-53">-setTextColor:</a>
|
|
<li><a href="NSText.html#method-55">-setUsesFontPanel:</a>
|
|
<li><a href="NSText.html#method-56">-setVerticallyResizable:</a>
|
|
<li><a href="NSText.html#method-57">-showGuessPanel:</a>
|
|
<li><a href="NSText.html#method-58">-sizeToFit</a>
|
|
<li><a href="NSText.html#method-59">-string</a>
|
|
<li><a href="NSText.html#method-60">-subscript:</a>
|
|
<li><a href="NSText.html#method-61">-superscript:</a>
|
|
<li><a href="NSText.html#method-62">-textColor</a>
|
|
<li><a href="NSText.html#method-68">-textDidBeginEditing:</a>
|
|
<li><a href="NSText.html#method-69">-textDidChange:</a>
|
|
<li><a href="NSText.html#method-70">-textDidEndEditing:</a>
|
|
<li><a href="NSText.html#method-71">-textShouldBeginEditing:</a>
|
|
<li><a href="NSText.html#method-72">-textShouldEndEditing:</a>
|
|
<li><a href="NSText.html#method-63">-toggleRuler:</a>
|
|
<li><a href="NSText.html#method-64">-underline:</a>
|
|
<li><a href="NSText.html#method-65">-unscript:</a>
|
|
<li><a href="NSText.html#method-66">-usesFontPanel</a>
|
|
<li><a href="NSText.html#method-67">-writeRTFDToFile:atomically:</a>
|
|
</ul>
|
|
<hr>
|
|
<h2><a name="method-0">alignCenter:</a></h2>
|
|
- (void) <b>alignCenter:</b> (id)sender<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-1">alignLeft:</a></h2>
|
|
- (void) <b>alignLeft:</b> (id)sender<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-2">alignRight:</a></h2>
|
|
- (void) <b>alignRight:</b> (id)sender<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-3">alignment</a></h2>
|
|
- (NSTextAlignment) <b>alignment</b><br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-4">backgroundColor</a></h2>
|
|
- (NSColor*) <b>backgroundColor</b><br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-5">changeFont:</a></h2>
|
|
- (void) <b>changeFont:</b> (id)sender<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-6">checkSpelling:</a></h2>
|
|
- (void) <b>checkSpelling:</b> (id)sender<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-7">copy:</a></h2>
|
|
- (void) <b>copy:</b> (id)sender<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-8">copyFont:</a></h2>
|
|
- (void) <b>copyFont:</b> (id)sender<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-9">copyRuler:</a></h2>
|
|
- (void) <b>copyRuler:</b> (id)sender<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-10">cut:</a></h2>
|
|
- (void) <b>cut:</b> (id)sender<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-11">delegate</a></h2>
|
|
- (id) <b>delegate</b><br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-12">delete:</a></h2>
|
|
- (void) <b>delete:</b> (id)sender<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-13">drawsBackground</a></h2>
|
|
- (BOOL) <b>drawsBackground</b><br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-14">font</a></h2>
|
|
- (NSFont*) <b>font</b><br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-15">importsGraphics</a></h2>
|
|
- (BOOL) <b>importsGraphics</b><br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-16">initWithFrame:</a></h2>
|
|
- (id) <b>initWithFrame:</b> (NSRect)frameRect<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-17">isEditable</a></h2>
|
|
- (BOOL) <b>isEditable</b><br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-18">isFieldEditor</a></h2>
|
|
- (BOOL) <b>isFieldEditor</b><br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-19">isHorizontallyResizable</a></h2>
|
|
- (BOOL) <b>isHorizontallyResizable</b><br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-20">isRichText</a></h2>
|
|
- (BOOL) <b>isRichText</b><br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-21">isRulerVisible</a></h2>
|
|
- (BOOL) <b>isRulerVisible</b><br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-22">isSelectable</a></h2>
|
|
- (BOOL) <b>isSelectable</b><br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-23">isVerticallyResizable</a></h2>
|
|
- (BOOL) <b>isVerticallyResizable</b><br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-24">maxSize</a></h2>
|
|
- (NSSize) <b>maxSize</b><br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-25">minSize</a></h2>
|
|
- (NSSize) <b>minSize</b><br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-26">paste:</a></h2>
|
|
- (void) <b>paste:</b> (id)sender<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-27">pasteFont:</a></h2>
|
|
- (void) <b>pasteFont:</b> (id)sender<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-28">pasteRuler:</a></h2>
|
|
- (void) <b>pasteRuler:</b> (id)sender<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-29">readRTFDFromFile:</a></h2>
|
|
- (BOOL) <b>readRTFDFromFile:</b> (NSString*)path<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-30">replaceCharactersInRange:withRTF:</a></h2>
|
|
- (void) <b>replaceCharactersInRange:</b> (NSRange)aRange <b>withRTF:</b> (NSData*)rtfData<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-31">replaceCharactersInRange:withRTFD:</a></h2>
|
|
- (void) <b>replaceCharactersInRange:</b> (NSRange)aRange <b>withRTFD:</b> (NSData*)rtfdData<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-32">replaceCharactersInRange:withString:</a></h2>
|
|
- (void) <b>replaceCharactersInRange:</b> (NSRange)aRange <b>withString:</b> (NSString*)aString<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-33">RTFDFromRange:</a></h2>
|
|
- (NSData*) <b>RTFDFromRange:</b> (NSRange)aRange<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-34">scrollRangeToVisible:</a></h2>
|
|
- (void) <b>scrollRangeToVisible:</b> (NSRange)aRange<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-35">selectAll:</a></h2>
|
|
- (void) <b>selectAll:</b> (id)sender<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-36">selectedRange</a></h2>
|
|
- (NSRange) <b>selectedRange</b><br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-37">setAlignment:</a></h2>
|
|
- (void) <b>setAlignment:</b> (NSTextAlignment)mode<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-38">setBackgroundColor:</a></h2>
|
|
- (void) <b>setBackgroundColor:</b> (NSColor*)aColor<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-39">setDelegate:</a></h2>
|
|
- (void) <b>setDelegate:</b> (id)anObject<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-40">setDrawsBackground:</a></h2>
|
|
- (void) <b>setDrawsBackground:</b> (BOOL)flag<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-41">setEditable:</a></h2>
|
|
- (void) <b>setEditable:</b> (BOOL)flag<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-42">setFieldEditor:</a></h2>
|
|
- (void) <b>setFieldEditor:</b> (BOOL)flag<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-43">setFont:</a></h2>
|
|
- (void) <b>setFont:</b> (NSFont*)aFont<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-44">setFont:</a></h2>
|
|
- (void) <b>setFont:</b> (NSFont*)aFont<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-45">setHorizontallyResizable:</a></h2>
|
|
- (void) <b>setHorizontallyResizable:</b> (BOOL)flag<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-46">setImportsGraphics:</a></h2>
|
|
- (void) <b>setImportsGraphics:</b> (BOOL)flag<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-47">setMaxSize:</a></h2>
|
|
- (void) <b>setMaxSize:</b> (NSSize)aSize<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-48">setMinSize:</a></h2>
|
|
- (void) <b>setMinSize:</b> (NSSize)aSize<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-49">setRichText:</a></h2>
|
|
- (void) <b>setRichText:</b> (BOOL)flag<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-50">setSelectable:</a></h2>
|
|
- (void) <b>setSelectable:</b> (BOOL)flag<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-51">setSelectedRange:</a></h2>
|
|
- (void) <b>setSelectedRange:</b> (NSRange)aRange<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-52">setString:</a></h2>
|
|
- (void) <b>setString:</b> (NSString*)aString<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-53">setTextColor:</a></h2>
|
|
- (void) <b>setTextColor:</b> (NSColor*)aColor<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-54">setTextColor:</a></h2>
|
|
- (void) <b>setTextColor:</b> (NSColor*)aColor<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-55">setUsesFontPanel:</a></h2>
|
|
- (void) <b>setUsesFontPanel:</b> (BOOL)flag<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-56">setVerticallyResizable:</a></h2>
|
|
- (void) <b>setVerticallyResizable:</b> (BOOL)flag<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-57">showGuessPanel:</a></h2>
|
|
- (void) <b>showGuessPanel:</b> (id)sender<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-58">sizeToFit</a></h2>
|
|
- (void) <b>sizeToFit</b><br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-59">string</a></h2>
|
|
- (NSString*) <b>string</b><br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-60">subscript:</a></h2>
|
|
- (void) <b>subscript:</b> (id)sender<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-61">superscript:</a></h2>
|
|
- (void) <b>superscript:</b> (id)sender<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-62">textColor</a></h2>
|
|
- (NSColor*) <b>textColor</b><br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-63">toggleRuler:</a></h2>
|
|
- (void) <b>toggleRuler:</b> (id)sender<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-64">underline:</a></h2>
|
|
- (void) <b>underline:</b> (id)sender<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-65">unscript:</a></h2>
|
|
- (void) <b>unscript:</b> (id)sender<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-66">usesFontPanel</a></h2>
|
|
- (BOOL) <b>usesFontPanel</b><br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-67">writeRTFDToFile:atomically:</a></h2>
|
|
- (BOOL) <b>writeRTFDToFile:</b> (NSString*)path <b>atomically:</b> (BOOL)atomicFlag<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-68">textDidBeginEditing:</a></h2>
|
|
- (void) <b>textDidBeginEditing:</b> (NSNotification*)aNotification<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-69">textDidChange:</a></h2>
|
|
- (void) <b>textDidChange:</b> (NSNotification*)aNotification<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-70">textDidEndEditing:</a></h2>
|
|
- (void) <b>textDidEndEditing:</b> (NSNotification*)aNotification<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-71">textShouldBeginEditing:</a></h2>
|
|
- (BOOL) <b>textShouldBeginEditing:</b> (NSText*)aTextObject<br>
|
|
|
|
|
|
<hr>
|
|
<h2><a name="method-72">textShouldEndEditing:</a></h2>
|
|
- (BOOL) <b>textShouldEndEditing:</b> (NSText*)aTextObject<br>
|
|
|
|
|
|
<hr>
|
|
</body>
|
|
|
|
</html>
|