BLACK FRIDAY: Save 50% on all my Swift books and bundles! >>

SOLVED: Hacking with macOS, project 1, Ctrl-drag from Table View to Source View Controller doesn't have dataSource

Forums > Books

Hi

I just bought Hacking with macOS and started working on Project 1. I'm finding that there's a lot of changes from Xcode 11 to Xcode 12. Like the keyboard shortcuts have changed. I can figure those out no problem, but I hit a road block. I'm at the step that says Ctrl-drag from Table View to Source View Controller and when you release, choose "dataSource" from the menu that appears. Apparently this has changed in Xcode 12 as that option doesn't exist. The available options are:

  • Action Segue
  • Sheet
  • Popover
  • Custom
  • Show
  • Modal

What should I choose here?

Xcode 12.2 macOS 11.0.1

3      

Hmm, it works for me using Xcode 12.2:

HWS macOS Project 1 #1

Are you sure your ViewController is named correctly? If I change the name of my SourceViewController to something else, I get this popup:

HWS macOS Project 1 #2

3      

ah thank you! I was dragging to the Source View Controller in the Interface Builder pane thingy instead of the one in the Document Outline. It works the way you showed me. Awesome!!!

This is my first programming language I'm learning at 53, so bound to make newbie mistakes :)

3      

Save 50% in my WWDC sale.

SAVE 50% All our books and bundles are half price for Black Friday, so you can take your Swift knowledge further without spending big! Get the Swift Power Pack to build your iOS career faster, get the Swift Platform Pack to builds apps for macOS, watchOS, and beyond, or get the Swift Plus Pack to learn advanced design patterns, testing skills, and more.

Save 50% on all our books and bundles!

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.