Reputation: 2785
I have a NSViewController (I'm using a storyboard) with one iboutlet connected to a NSOutlineView (yes, I have made absolutely shure that it really is connected), but when I try to reference it in awakeFromNib, the outlet is still nil although they should be guaranteed to be connected in awakeFromNib. Any ideas or solutions?
Upvotes: 2
Views: 715
Reputation: 6669
The Apple documentation says that the lifecycle of a NSViewController
starts with viewDidLoad
, so you should do your stuff there.
Upvotes: 3