Connections not working when loading window from nib file
I'm launching a new window with a nib file as below:
Workbench* workben开发者_C百科ch = [[Workbench alloc] initWithWindowNibName:@"WorkbenchView"];
[workbench showWindow:self];
However, none of the connections that I've made in Interface Builder seem to work. What do I need to do to have access to these outlets?
The issue turned out that I was trying to set delegates, etc too early in the init method. I moved my code to awakeFromNib and am now able to access everything just fine.
精彩评论