I have a document-based Cocoa app. During runtime, I load an additional nib from the bundle by invoking [NSBundle loadNibNamed:@"inspectorNIB" owner:self]
(where self
is the NSDocument
).
Strangely enough, while loading the bundle succeeds, it invokes the NSDocument
's awakeFromNib
method again, causing an unnecessary second initialisation. Is this expected behaviour? How can I suppress it?