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 (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

Reply via email to