I have an instance of a class "A" in my EAGLView class, it gets instantiated in the EAGLView's initWithCoder method.
This class "A" contains an IBOutlet to a UIView.
I also have an instance of this class "A" in the Interface Builder, to connect the class "A" IBOutlet to the corresponding view.
So the class "A" is being instanciated twice, the first time by the Interface Builder, where the in the awakeFromNib method, the IBOutlet is working perfectly. However it's getting instanciated again by EAGLView, and this time the outlet that connects to the UIView is obviously not connected to a UIView so it's nil.
What could I do from a design perspective to avoid this problem ? , I really tried to be very clear hope it's clear enough.