Skip to content

Instantly share code, notes, and snippets.

@standinga
Created September 26, 2019 02:31
Show Gist options
  • Save standinga/fb650bbd6afb88b6f69b7df9322495b9 to your computer and use it in GitHub Desktop.
Save standinga/fb650bbd6afb88b6f69b7df9322495b9 to your computer and use it in GitHub Desktop.
updated AudioUnitViewController initializers for medium blog article about How To Create Audio Unit From Scratch
// this initializer is called by NSExtensionContextVendor beginRequestWithExtensionItems,
// without it Garage Band will not show the UI!
init() {
super.init(nibName: "AudioUnitViewController", bundle: Bundle(for: AudioUnitViewController.self))
}
override public init(nibName nibNameOrNil: NSNib.Name?, bundle nibBundleOrNil: Bundle?) {
super.init(nibName: "AudioUnitViewController", bundle: Bundle(for: AudioUnitViewController.self))
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment