Next: stringWithFormat Up: NSString Previous: What is it

Static Instances

The easiest way to create a NSString is by creating a `static' instance of it using the @"..." construct. For example,
NSString *name = @"Nicola";
name will point then to a `static' instance of NSString containing a unicode representation of the ASCII string Nicola. A `static' instance basically means an instance which is allocated at compile time, whose instance variables are fixed, and which can never be released.



Nicola 2002-01-13