This is a follow-on question from my previous one relating to why my managedObjectContext was returning to nil. I thought the direction of the question would get buried
Most of the time, this means that you have inadvertently created two instances of your class. One is in your nib and hooked up to everything, while the other is either created in code or created elsewhere in a nib without any connections. An easy way to prove that this is happening is to log self
both in awakeFromNib
and some method that's seeing nil — you'll see different addresses for the two objects. You'll also find that outlineView
itself is nil, since the outlet isn't hooked up to anything.