I have a Cocoa app that has a main NSWindowController
and inside a NSView
connected to a NSViewController
object like this:
CloudCardsViewController is a NSViewController
with its Nib
and IBOutlet
to a NSStackView
. When I try to access to the outlet, app crashes and show this error on console:
fatal error: unexpectedly found nil while unwrapping an Optional value 2017-09-16 19:46:43.756852+0200 AppName[3402:150754] fatal error: unexpectedly found nil while unwrapping an Optional value
If I add NSViewController
by code, works fine...
If I print baseStackView
the result is nil
Any idea? Thanks!