String Objects
You have encountered string objects in your programs before. Whenever you enclosed a sequence of character strings inside a pair of double quotes, as in
@"Programming is fun"
you created a character string object in Objective-C. The Foundation framework supports a class called NSString for working with character string objects. Whereas C-style strings consist of char characters, NSString objects consist of unichar characters. A unichar character is a multibyte character according to the Unicode standard. This enables you to work with character sets that can contain literally millions of characters. Luckily, you don’t have to worry about the internal representation of the characters in your strings because the NSString class automatically ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access