- Inherits from:
- NSStringReference : NSObject
- Package:
- com.apple.yellow.foundation
The NSMutableStringReference class declares the programmatic interface to an object that manages a mutable string-that is, a string whose contents can be edited. To construct and manage an immutable string-or a string that cannot be changed after it has been created-use an object of the NSStringReference class.
An immutable string is implemented as array of Unicode characters (in other words, as a text string). The NSMutableStringReference class adds one primitive method- replaceCharactersInRange-to the basic string-handling behavior inherited from NSStringReference. All other methods that modify a string work through this method. For example, insertStringAtIndex simply replaces the characters in a range of zero length, while deleteCharactersInRange replaces the characters in a given range with no characters.
- Constructors
- NSMutableStringReference
- Modifying a string
- appendString
- deleteCharactersInRange
- insertStringAtIndex
- replaceCharactersInRange
- setString
public NSMutableStringReference()
public NSMutableStringReference(
NSData aData,
int anInt)
public NSMutableStringReference(java.net.URL anURL)
public NSMutableStringReference(
java.net.URL anURL,
int anInt)
public void appendString(String aString)
public void appendString(NSStringReference aStringReference)
public void deleteCharactersInRange(NSRange aRange)
public void insertStringAtIndex(
String aString,
int anIndex)
public void insertStringAtIndex(
NSStringReference aStringReference,
int anIndex)
public void replaceCharactersInRange(
NSRange aRange,
String aString)
public void replaceCharactersInRange(
NSRange aRange,
NSStringReference aStringReference)
public void setString(String aString)
public void setString(NSStringReference aStringReference)