Join Simon Allardice for an in-depth discussion in this video Delegation for UI elements, part of Cocoa Essential Training.
When you get comfortable with the basic concept of delegation you'll find…yourself able to join in everywhere.…For example, several of the regular user interface elements in Cocoa can…delegate some behavior if we find it useful we can support that.…I will just create a brand-new Cocoa application, save it, and jump into the XIB file.…And select the Window just so we have something we can drop controls onto.…So there is a question. How would you know if a user interface element has some…behavior it's able to delegate? Well, here is one simple way.…
You grab one of these UI elements out of the library, and you drop it onto your interface.…I am going to drag on a button.…I'll come down a little bit and find say a text field and drag that on.…Coming down a bit further, I will drag on a combo box, and a Date Picker.…Just four fairly typical user interface elements.…Now here's what I want to do as a clue to find out if they can delegate…any behavior or not.…I am going to go into my Inspector section and open up the Connections Inspector,…
- 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?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
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.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.