Join Simon Allardice for an in-depth discussion in this video The structure of an Objective-C program, part of Objective-C Essential Training.
Let's cover what we'll see in every Objective-C program.…I'm going to open Xcode and create another example project.…Again, going to the application section under…OS X and selecting a command line tool.…I'm going to call this one SecondApp.…We shouldn't need to do anything with the…organization name and company identifier this time around.…It should just remember what you put in previously.…And again, just double checking, making sure the type is Foundation.…I'll click Next and go through and just save this into My Documents folder.…Going onto this left-hand side, into the navigators, I'll…just expand all the folders that I have here.…
But there's not a lot to see.…We've got a few files I can single-click on, like this PCH and this .1 file.…But I'm looking for Objective-C, and we have that…in this one main.m file, just a little Objective-C here.…Let's take this line by line.…Lines 1 through 7 are just comments.…We've got the two forward slashes at the start, so everything else…after that is ignored and Xcode makes it show up in green.…
Author
Released
12/2/2013- Installing the tools
- Understanding the structure of an Objective-C program
- Logging messages and using format strings
- Writing conditional code
- Using code snippets
- Working with variables, classes, and functions
- Working with objects
- Using existing classes in the Foundation framework
- Managing memory usage
- Creating custom classes
- Working with Objective-C collections
- Reading and writing to files
- Understanding inheritance and NSObject
- Using Categories, Protocols, and Class Extensions
- Compiling and debugging code
Skill Level Beginner
Duration
Views
Related Courses
-
Introduction
-
Welcome1m 21s
-
What you should know1m 46s
-
-
1. Getting Started
-
Installing the tools3m 35s
-
Introduction to Xcode6m 48s
-
-
2. Core Concepts
-
Why use Objective-C?5m 18s
-
-
3. Basic Syntax
-
The if statement6m 17s
-
Using switch statements4m 11s
-
Operators and expressions9m 19s
-
Working with loops6m 47s
-
Creating functions8m 48s
-
Using code snippets3m 8s
-
4. Variables and Data Types
-
Data types in Objective-C5m 41s
-
Numeric data types6m 32s
-
Using chars and BOOL2m 45s
-
Creating enumerations5m 58s
-
Using string objects4m 48s
-
-
5. Working with Objects
-
Using pointers8m 12s
-
Messages and method calls7m 20s
-
6. Memory Management
-
Autoreleased objects8m 3s
-
7. Creating Custom Classes
-
Creating your own classes13m 43s
-
Adding methods8m 42s
-
Adding class properties7m 16s
-
Using dealloc methods5m 11s
-
-
8. Using Collections
-
Working with C-style arrays6m 18s
-
Creating dictionary objects8m 28s
-
Fast enumeration5m 27s
-
-
9. Working with Files
-
File and URL paths4m 57s
-
Reading and writing strings6m 48s
-
Unarchiving objects4m 20s
-
10. Language Features
-
Using class extensions8m 49s
-
Using protocols6m 42s
-
11. Errors and Debugging
-
Adding exception handling5m 10s
-
Conclusion
-
Goodbye47s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: The structure of an Objective-C program