0

In my project in cocoa have the same Problem as Can Poyrazoğlu in this Question: Storyboard doesn't contain a controller with identifier 'MainWindow' None of the advices help, included manually saving the project. It worked well - 3000 lines - until I began inserting code with NSTableView. The behavior is odd: I have some print statements in the TableView code for debugging. After a change in the code, the app runs but nothing is shown in the TableView exept the above line appears, but the printing does not show up in the console. Running again mostly works. The error message now apears AFTER the print output. Is this a timing issue? Storyboard ID is set correctly, I think. In other projects I never had to set such an ID Any help... Screenshot of the Inspector

heimi
  • 499
  • 7
  • 16

1 Answers1

0
let mainViewController2 = self.storyboard?.instantiateViewController(withIdentifier: "mainview") as! mainview

in your case you forgot the class name so this error showing you.

mainview is your controller name.

BHAVIK
  • 890
  • 7
  • 35