Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loadView() override needed if no interface builder #74

Open
gaborcsardi opened this issue May 15, 2022 · 1 comment
Open

loadView() override needed if no interface builder #74

gaborcsardi opened this issue May 15, 2022 · 1 comment

Comments

@gaborcsardi
Copy link

gaborcsardi commented May 15, 2022

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.

@gaborcsardi gaborcsardi changed the title Thanks for the great project loadView() override needed if no interface builder May 15, 2022
@sindresorhus
Copy link
Owner

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

dezinezync pushed a commit to dezinezync/Preferences that referenced this issue Dec 17, 2022
dezinezync pushed a commit to dezinezync/Preferences that referenced this issue Dec 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants