Swift macOS Tutorial: TableView Cocoa binding to ArrayController

preview_player
Показать описание
In this Swift macOS tutorial video we'll look at using Cocoa binding to bind an object to an ArrayController, which is bound to a TableView in a ViewController. This will allow you to populate your TableView with data dynamically, or in the case of our example, at the push of a button.

00:00 Intro
00:25 New project
00:44 Creating the data object
01:48 Adding object array to ViewController
02:37 Adding TableView to StoryBoard
02:57 Adding ArrayController to StoryBoard
03:09 Binding ArrayController
03:27 Binding TableView
03:50 Binding Table View Cells
05:03 Binding Button to action
05:22 Adding code to action
05:52 Running the code
06:02 End

Subscribe for more content, as I will be creating more tutorial and how-to videos for coding in Swift, as well as longer tutorials on building macOS apps.

If you'd like to support my work to help me improve video quality and bring more content, please consider donating to my PayPal:

Thank you for watching!

Huge thank you to the channels below for helping me get started!
Uncreated Light Press
and

Mr. Macintosh
and

The Apple Ninja
Рекомендации по теме
Комментарии
Автор

How to bind data in arrays of objects to TableViews in macOS - I hope you enjoy the video!

swift_goose
Автор

Great vid Swift Goose! Some ideas for videos down the road: Database Integration, Shell Script Integration, iOS/macOS App that communicates between devices. Great job on this channel, thank you!

AppleNinja
Автор

Where does Date().description come from in your initialization of the array?

charlesreidy