• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Controller does not contain associated window after initialization
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Controller does not contain associated window after initialization
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: dynamic NSPointArray allocation
  • Next by Date: Re: Controller does not contain associated window after initialization
  • Previous by thread: Re: dynamic NSPointArray allocation
  • Next by thread: Re: Controller does not contain associated window after initialization
  • Index(es):
    • Date
    • Thread