Return to the Alphabetic Index
Return to the Class Browser
Return to the Picture Browser
Copyright (c) 1994 by NeXT Computer, Inc. All Rights Reserved.


Inherits From: NSString : NSObject

Conforms To: NSCoding, NSCopying, NSMutableCopying (NSString) NSObject (NSObject)

Declared In: Foundation/NSString.h

Class Description

NSMutableString (and NSString) declare the programmatic interface for objects that create and managemutable representation-independent character strings. For a more general overview of string classes, see the description of NSString.

NSMutableString (and NSString) are abstract classes for string manipulation. NSMutableString declares the interface to objects that inherit all the capabilities of NSString objects, but in addition allow for modification of the string data. NSString and NSMutableString provide factory methods that return autoreleased instances of unspecified subclasses of strings.

You can instantiate an NSMutableString object by sending any of the stringWith1/4 methods to the NSMutableString class object. This set of methods also includes localizedStringWithFormat:. A newly allocated NSMutableString object can also be initialized using the initWithCapacity: method, to set the string to a specified capacity.

Creating Temporary Strings

Initializing a Mutable String

Modifying a String