Get the tools you need, learn what an Objective-C program looks like, and get your first code up and running.
Overview
Syllabus
Introduction
- Welcome
- What you should know
- Installing the tools
- Creating your first application
- Introduction to Xcode
- Using Objective-C frameworks
- Why use Objective-C?
- The structure of an Objective-C program
- Compiling and building your application
- Logging messages and using format strings
- The if statement
- Using switch statements
- Operators and expressions
- Working with loops
- Creating functions
- Using code snippets
- Data types in Objective-C
- Numeric data types
- Using chars and BOOL
- Understanding variable scope in Objective-C
- Creating enumerations
- Using string objects
- Introduction to object-orientation terms
- Using pointers
- Messages and method calls
- Using classes in the Foundation framework
- Memory management in Objective-C
- Object-creation (instantiation) options
- Autoreleased objects
- Creating your own classes
- Adding methods
- Adding class properties
- Using initializers and object keywords
- Using dealloc methods
- Working with C-style arrays
- Using Objective-C array classes
- Creating dictionary objects
- Fast enumeration
- Introduction to file management
- Finding the user directories
- File and URL paths
- Reading and writing strings
- Archiving custom objects to a file
- Unarchiving objects
- Inheritance and overriding in Objective-C
- Adding categories to an existing class
- Using class extensions
- Using protocols
- Dynamic typing in Objective-C
- Common compile-time errors and warnings
- Adding exception handling
- Adding breakpoints and debugging code
- Goodbye
Taught by
Simon Allardice