Controller does not contain associated window after initialization
Controller does not contain associated window after initialization
- Subject: Controller does not contain associated window after initialization
- From: Bryan Zarnett <email@hidden>
- Date: Tue, 1 Dec 2009 09:31:09 -0500
I am creating an application with multiple NIB files. I created an
empty NIB, put down a new window and added an Object for the
controller. I wired the controller object to the window and the nib as
well as a few actions.
In my controller class I have added the following:
if (self = [super init])
{
[NSBundle loadNibNamed:@"CreateSheets.xib" owner:self];
NSLog(@"The sheet is %@",[self sheet]);
}
The sheet is always null. Are there any specific steps I need to do,
when working with multiple NIBS to:
1) Load the controller for a specific NIB.
2) Set the window in the NIB to the controller
3) Use the new controller in another controller.
For reference, I have my "MainController" which instantiates the
"SecondController" and uses the window.
Thoughts?
Bryan
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden