Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

scottij

macrumors newbie
Original poster
I'm just starting to learn how to program Cocoa, and I'm following along in the NSPersistentDocument tutorial. But I'm getting this strange error message when I run my application:

Cannot create BOOL from object <_NSControllerObjectProxy: 0x3a8650> of class _NSControllerObjectProxy

This happens when the user clicks on my "Add" button and I try to open up a panel with the following code:

NSBundle *myBundle = [NSBundle bundleForClass:[self class]];
NSNib *nib = [[NSNib alloc] initWithNibNamed😡"NewRouterSheet" bundle:myBundle];
id retval = [nib instantiateNibWithOwner:self topLevelObjects:nil];

The error happens when the last line is executed.

I've checked everything and my NIB looks exactly the same as the downloaded example NIB from Apple.

Does anyone have any ideas or hints for me?

Thanks so much!

--Scott
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.