Swift macOS Tutorial: TableView Cocoa binding to ArrayController

Опубликовано: 05 Июнь 2026
на канале: Swift Goose
3,913
74

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

https://github.com/SwiftGoose5/macos_...

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:
https://www.paypal.com/paypalme/Swift...

Thank you for watching!

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

Mr. Macintosh
   / @mr.macintosh  
and

The Apple Ninja
   / jessetheappleninja