• 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
NIB Loading Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NIB Loading Problem


  • Subject: NIB Loading Problem
  • From: Dave <email@hidden>
  • Date: Wed, 26 Aug 2015 20:24:12 +0100

Hi,

I’m trying to adapt some sample code. I have a WindowController with a .xib file. In the xib file, I have an outlet to another view controller called OtherViewController.

OtherViewController is a subclass of DisclosureViewController.

When I run the app I get the following error message:

2015-08-26 20:14:15.725 Test1[9410:8657552] -[NSNib initWithNibNamed:bundle:] could not load the nibName: OtherViewController in bundle NSBundle </Users/Dave/Library/Developer/Xcode/DerivedData/Test1-bavmftqclrosndfglbsrbilskehz/Build/Products/Debug/Test1.app> (loaded).



I have the following defined in DisclosureViewController:

- (id)init
{
    return [self initWithNibName:@"DisclosureViewController" bundle:nil];
}

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self != nil)
    {
        _disclosureIsClosed = NO;
    }
    return self;
}


I’ve put a break point in both of these methods, but I still get the error. I seem to remember having this problem a long while ago but I can’t remember how I fixed it.

Anyone have any idea on how to make this work?

Thanks a lot
Dave


_______________________________________________

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: NIB Loading Problem
      • From: Dave <email@hidden>
  • Prev by Date: Re: Private Methods
  • Next by Date: Re: NIB Loading Problem
  • Previous by thread: Auto Layout and XCode/IB Warnings
  • Next by thread: Re: NIB Loading Problem
  • Index(es):
    • Date
    • Thread