Hour 4. Making the Calculator Calculate
The first part of this hour is dedicated to making the calculator calculate. You’ll learn how to use mutable strings, strings you can change, and why Objective-C provides two mutable and immutable variants of many common data-structures. To illustrate their use, you’ll add a history of calculations to the calculator using strings. Attempting to change an immutable string generates an exception, leading to a discussion of error handling in Objective-C.
The second part concentrates on the dynamic aspects of Objective-C that distinguish it from ...
Get Sams Teach Yourself Cocoa Touch™ Programming in 24 Hours now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.