Swift macOS Tutorial: OutlineView (Tree Controller, Cocoa bindings, add and remove nodes)

Опубликовано: 05 Май 2026
на канале: Swift Goose
2,748
39

In this Swift macOS tutorial video we'll look at using Cocoa bindings in an OutlineView and a Tree Controller, to allow you to add or remove nodes from your outline view using the tree controller.

00:00 Intro
00:33 Create Node class
02:48 Adding UI elements in Storyboard
03:27 Tree Controller bindings
04:32 Column bindings
04:58 Table View Cell bindings
05:39 selectionIndexPaths bindings
06:18 Connecting UI to Storyboard
06:58 Building the Buy action
10:47 Testing the add functionality
12:10 Building the Remove action
12:53 selectionIndexPaths explanation
14:24 Deleting selected Node
16:24 End

https://github.com/SwiftGoose5/swift_...

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