Join Simon Allardice for an in-depth discussion in this video Adding table views and data source classes, part of Cocoa Essential Training.
I have created a new Cocoa application, yet haven't done anything to it yet, but…I want to add a Table view to this window.…So I am going to jump over into the Data view section of the Object Library and…right at the top should be the Table view.…I am going to bring that onto the window here and just drag it wider to take up…as much space as it should.…And the key question is how do we get data into this?…Well, when you're loading data into a control, there are two primary ways,…both very different.…We can use code, and we can use something called Cocoa Bindings.…
I am going to show the code method first, and in the next section we'll talk…about Cocoa Bindings.…But here's the thing to understand about Table Views.…Table Views don't store data. These are view objects.…When we have a Table view in our application, what we need is another object, a…helper object that can act as that Table Views' data source.…This is very similar to the idea of delegation. We are asking another object…to do some work for the Table view, and then we will point the Table view to that data source.…
- 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.