sindresorhus / Settings

⚙ Add a settings window to your macOS app in minutes
MIT License
1.43k stars 100 forks source link

`loadView()` override needed if no interface builder #74

Open gaborcsardi opened 2 years ago

gaborcsardi commented 2 years ago

Thanks for the great project! Just wanted to mention that AFAICT if you are not using interface builder, then you need to write loadView() manually in the controllers, otherwise you get a crash:

  override func loadView() {
    self.view = NSView()
  }

If this is correct, then maybe it is worth mentioning in the README.

sindresorhus commented 2 years ago

I don't think this is the place to document how view controllers work.