# NSTextStorage

richard@brainstorm.co.uk
Generated at 2026-02-17 21:02:56 +0000
1999 Free Software Foundation, Inc.
Software documentation for the NSTextStorage class
AppKit/NSTextStorage.h
Description forthcoming.
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.
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.
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.
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.
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.
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.
addLayoutManager:
obj
Description forthcoming.
beginEditing
Description forthcoming.
changeInLength
Description forthcoming.
delegate
Returns the value most recently set usiong the -setDelegate: method.
edited:
mask
range:
old
changeInLength:
delta
Description forthcoming.
editedMask
Description forthcoming.
editedRange
Description forthcoming.
endEditing
Description forthcoming.
ensureAttributesAreFixedInRange:
range
Description forthcoming.
fixesAttributesLazily
Description forthcoming.
invalidateAttributesInRange:
range
Description forthcoming.
layoutManagers
Description forthcoming.
processEditing
Description forthcoming.
removeLayoutManager:
obj
Description forthcoming.
setDelegate:
delegate
Set the delegate (adds it as an observer for text storage notifications) and removes any old value (removes it as an observer).
The delegate is not retained.
string
Returns the string data stored by the receiver.
For performance reasons (and OSX compatibility) this is actually a proxy to the internal representation of the string.
This proxy provides an immutable string interface, but you must be aware that the underlying information may be modified by the receiver at any point, so if you need a consistent/fixed snapshot of the data (or if you are going to pass the string to other code which expects to be working with a constant string), you should copy the object returned by this method rather than simply retaining it.
Software documentation for the NSObject(NSTextStorageDelegate) informal protocol
AppKit/NSTextStorage.h
Description forthcoming.
textStorageDidProcessEditing:
notification
Description forthcoming.
textStorageWillProcessEditing:
notification
Description forthcoming.
Software documentation for the NSTextStorage(Scripting) category
AppKit/NSTextStorage.h
Description forthcoming.
attributeRuns
Description forthcoming.
characters
Description forthcoming.
font
Description forthcoming.
foregroundColor
Description forthcoming.
paragraphs
Description forthcoming.
setFont:
font
Description forthcoming.
words
Description forthcoming.