Next: 1.3 stringWithFormat Up: 1 NSString Previous: 1.1 What is it

1.2 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.



2008-01-16