NSString objects represent an immutable string of characters. NSString itself is an abstract class which provides factory methods to generate objects of unspecified subclasses.
A constant NSString can be created using the following syntax:
@"..."
, where the contents of the quotes are the
string, using only ASCII characters.
To create a concrete subclass of NSString, you must have your class inherit from NSString and override at least the two primitive methods - length and characterAtIndex:
In general the rule is that your subclass must override any initialiser that you want to use with it. The GNUstep implementation relaxes that to say that, you may override only the designated initialiser and the other initialisation methods should work.
Returns an array of all available string encodings, terminated by a null value.
Returns the encoding used for any method accepting a C string.
Returns the localized name of the encoding specified by encoding.