OSX 10.7.5 - XCode 4.6.1 - application OSX, not iOS.
Code very simple.
A Window > contentWiew > subView with ViewController > Button
. The button is created using ViewController.xib
.
All displays as expected, but when I click on the button, all fails. All Objects are not nil
.
ViewController *viewController = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil];
NSView *aView = [NSView new];
aView = [viewController view];
[[_window contentView] addSubview:aView];
In Console :
[NSContentSizeLayoutConstraint buttonAct:]: unrecognized selector sent to instance 0x1061178a0