Join Simon Allardice for an in-depth discussion in this video Using the application delegate, part of Cocoa Essential Training.
We are always using Delegation. Even if I create a new Cocoa application right…out of the box in Xcode, we are using it already.…And not surprisingly, the most obvious example of delegation that's already…there is the AppDelegate class.…Now the actual name of this class is not important at all.…This is a regular Objective-C class.…If we look at the header file for it, we are just inheriting from NSObject.…But it has two things that are special about it.…
After NSObject we use the angle brackets to say, well I might be a regular…object but can also be a delegate for NSApplication.…That means, an NSApplication object can pass behavior to this object, if it knows it exists.…And this is one of the biggest differences between Cocoa, and Desktop…Development on other platforms.…In Cocoa, we don't subclass an existing application class and extend it.…We just let the regular built-in NSApplication object, do what it does naturally,…but we create a completely separate class to provide any extra behavior, and…that's the idea of a delegate.…
- Installing the tools
- Creating your first app
- Adding basic interactions
- Understanding the Cocoa application life cycle
- Creating custom controller classes
- Creating alerts
- Understanding delegation
- Working with buttons, text fields, sliders, and more
- Using layout and data views
- Adding and editing toolbars
- Using key-value coding
- Binding objects
- Debugging code
- Distributing an application
- Creating icons and full-screen apps
Skill Level Beginner
1. Getting Started
2. Core Cocoa Skills
4. Creating User Interfaces
5. Arranging User Interfaces
6. Using Data Controls
7. Debugging and Troubleshooting
8. Distributing an Application
9. Finishing Touches
Creating full-screen apps6m 43s
Final thoughts4m 10s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take 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.