Join Todd Perkins for an in-depth discussion in this video Using Model-View-Controller (MVC), part of Cocoa with Swift Essential Training.
- View Offline
- Exercise Files
…Throughout your Cocoa Development and this course,…you'll see a lot of what is known as Model-View-Controller or MVC.…So, what is MVC?…MVC is a design pattern, which is a way of organizing your code so…different files and classes have different roles and responsibilities.…MVC is not unique to Cocoa or Swift because it's a design pattern and…can be used in just about any other programming language.…
The core principle behind MVC is that you want to keep your visual content separate…from your data, so that using your user interface does not break your code.…In Cocoa, MVC is encouraged, though it's not completely enforced.…Let's look at how MVC works.…So we have our Model, which represents our data.…Think of this like, emails or…text messages or contacts in your contacts application.…Though they're not visual things, they can be displayed visually in your apps.…
And then we have our Controller,…which is our code that connects our Model with our View.…The View is a user interface, all the things that you see in your application.…
- Creating your first Cocoa app
- Understanding the relationship between Cocoa and Swift
- Creating a playground
- Working with variables, functions, arrays, and loops
- Creating basic interactions and quick connections
- Building custom controller classes
- Using delegates
- Creating and arranging interface elements
- Using data controls
- Debugging and troubleshooting
- Distributing a Cocoa application
Skill Level Beginner
1. Getting Started
Installing the tools1m 14s
2. Introduction to Swift
3. Core Cocoa Skills
5. Creating User Interfaces
6. Arranging User Interfaces
7. Using Data Controls
8. Debugging and Troubleshooting
9. Distributing an Application
10. Finishing Touches
Creating full-screen apps4m 56s
Next steps1m 36s
- 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.