Hour 3. Simplifying Your Code

A key Objective-C idea is to recognize commonly occurring code patterns and to replace them with library functions. This helps you keep fewer details in mind, and reduces the amount of code you must write and debug. NSAutoReleasePools simplify memory management. NSStrings simplify string handling by providing good Unicode support. Messaging, dot notation, and properties simplify method invocation.

This hour also introduces the debugger, another tool to help you understand how Objective-C ...

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.