On Tue, Mar 25, 2014, at 11:08 AM, Keary Suska wrote: > Yes, and yes, but also it is documented to not throw an exception is > setView: is used before the view is loaded, which the OP must be using to > avoid the exception.
The whole point is that he's not. Try it for yourself. @interface SomeViewController : NSViewController @end @implementation SomeViewController @end @implementation AppDelegate - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { SomeViewController *vc = [[SomeViewController alloc] init]; [_window.contentView addSubview:vc.view]; } @end Does not throw an exception, as long as SomeViewController.xib exists and has a view hooked up to First Responder's view outlet. --Kyle Sluder _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com