#import <CPTextStorage.h>
Additional Inherited Members | |
Class Methods inherited from CPObject | |
(BOOL) | + accessInstanceVariablesDirectly |
(id) | + alloc |
(id) | + allocWithCoder: |
(BOOL) | + automaticallyNotifiesObserversForKey: |
(void) | + cancelPreviousPerformRequestsWithTarget: |
(void) | + cancelPreviousPerformRequestsWithTarget:selector:object: |
(Class) | + class |
(BOOL) | + conformsToProtocol: |
(void) | + exposeBinding: |
(void) | + initialize |
(IMP) | + instanceMethodForSelector: |
(BOOL) | + instancesImplementSelector: |
(BOOL) | + instancesRespondToSelector: |
(BOOL) | + isBindingExclusive: |
(BOOL) | + isSubclassOfClass: |
(CPSet) | + keyPathsForValuesAffectingValueForKey: |
(void) | + load |
(id) | + new |
(void) | + object:performSelector:withObject:afterDelay:inModes: |
(void) | + setVersion: |
(Class) | + superclass |
(int) | + version |
Definition at line 2 of file CPTextStorage.h.
|
implementation |
|
implementation |
Add a collection of attributes to the specified character range.
-setAttributes
:range:. aDictionary | a CPDictionary of attributes (names and values) to add. |
aRange | a CPRange indicating the range of characters to add the attributes to. |
Reimplemented from CPAttributedString.
Definition at line 214 of file CPTextStorage.j.
|
implementation |
Definition at line 116 of file CPTextStorage.j.
|
implementation |
Extracts a substring from the receiver, both characters and attributes, within the range given by aRange
.
aRange | the range of the substring to extract. |
CPRangeException | if the range lies outside the receiver's bounds. |
Reimplemented from CPAttributedString.
Definition at line 246 of file CPTextStorage.j.
|
implementation |
This function is deliberately empty. It is provided to ease code converting from Cocoa.
Reimplemented from CPAttributedString.
Definition at line 165 of file CPTextStorage.j.
|
implementation |
Synthesized accessor method.
Provided by category CPTextStorage(CPSynthesizedAccessors).
Definition at line 352 of file CPTextStorage.j.
|
implementation |
Deletes a range of characters and their associated attributes.
aRange | a CPRange indicating the range of characters to delete. |
Reimplemented from CPAttributedString.
Definition at line 222 of file CPTextStorage.j.
|
implementation |
Definition at line 181 of file CPTextStorage.j.
|
implementation |
Synthesized accessor method.
Provided by category CPTextStorage(CPSynthesizedAccessors).
Definition at line 368 of file CPTextStorage.j.
|
implementation |
Synthesized accessor method.
Provided by category CPTextStorage(CPSynthesizedAccessors).
Definition at line 344 of file CPTextStorage.j.
|
implementation |
Reimplemented from CPAttributedString.
Provided by category CPTextStorage(CPCoding).
Definition at line 292 of file CPTextStorage.j.
|
implementation |
This function is deliberately empty. It is provided to ease code converting from Cocoa.
Reimplemented from CPAttributedString.
Definition at line 173 of file CPTextStorage.j.
|
implementation |
Synthesized accessor method.
Provided by category CPTextStorage(CPSynthesizedAccessors).
Definition at line 320 of file CPTextStorage.j.
|
implementation |
Synthesized accessor method.
Provided by category CPTextStorage(CPSynthesizedAccessors).
Definition at line 304 of file CPTextStorage.j.
|
implementation |
Creates an empty attributed string.
Reimplemented from CPAttributedString.
Definition at line 85 of file CPTextStorage.j.
|
implementation |
Reimplemented from CPAttributedString.
Provided by category CPTextStorage(CPCoding).
Definition at line 280 of file CPTextStorage.j.
|
implementation |
Creates a new attributed string from a character string.
aString | is the string to initialise from. |
aString
. Reimplemented from CPAttributedString.
Definition at line 80 of file CPTextStorage.j.
|
implementation |
Creates a new attributed string from a character string and the specified dictionary of attributes.
aString | is the attributed string to initialise from. |
attributes | is a dictionary of string attributes. |
aString
with associated attributes, attributes
. Reimplemented from CPAttributedString.
Definition at line 65 of file CPTextStorage.j.
|
implementation |
Definition at line 134 of file CPTextStorage.j.
|
implementation |
Synthesized accessor method.
Provided by category CPTextStorage(CPSynthesizedAccessors).
Definition at line 336 of file CPTextStorage.j.
|
implementation |
Definition at line 143 of file CPTextStorage.j.
|
implementation |
Remove a named attribute from a character range.
anAttribute | a CPString specifying the name of the attribute. |
aRange | a CPRange indicating the range of character from which the attribute will be removed. |
Reimplemented from CPAttributedString.
Definition at line 206 of file CPTextStorage.j.
|
implementation |
Definition at line 125 of file CPTextStorage.j.
|
implementation |
Replaces characters and attributes in the range aRange
with those of the given attributed string, aString
.
aRange | a CPRange object specifying the range of characters and attributes in the object to replace. |
aString | a CPAttributedString containing the data to be used for replacement. |
Reimplemented from CPAttributedString.
Definition at line 238 of file CPTextStorage.j.
|
implementation |
Replaces the characters in the receiver with those of the specified string over the range, aRange
. If the range has a length of 0 then the specified string is inserted at the range location. The new characters inherit the attributes of the first character in the range that they replace or in the case if a 0 range length, the first character before of after the insert (after if the insert is at location 0).
aString
is inserted and thus the receiver's length changes to match this aRange | the range of characters to replace. |
aString | the string to replace the specified characters in the receiver. |
Reimplemented from CPAttributedString.
Definition at line 230 of file CPTextStorage.j.
|
implementation |
Synthesized accessor method.
Provided by category CPTextStorage(CPSynthesizedAccessors).
Definition at line 360 of file CPTextStorage.j.
|
implementation |
Definition at line 94 of file CPTextStorage.j.
|
implementation |
Synthesized accessor method.
Provided by category CPTextStorage(CPSynthesizedAccessors).
Definition at line 376 of file CPTextStorage.j.
|
implementation |
Synthesized accessor method.
Provided by category CPTextStorage(CPSynthesizedAccessors).
Definition at line 328 of file CPTextStorage.j.
|
implementation |
Synthesized accessor method.
Provided by category CPTextStorage(CPSynthesizedAccessors).
Definition at line 312 of file CPTextStorage.j.