Cannot create BOOL from object NSControllerObjectProxy

Discussion in 'Mac Programming' started by scottij, Oct 25, 2007.

  1. macrumors newbie

    Joined:
    Feb 22, 2007
    Location:
    Ann Arbor, MI
    #1
    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:mad:"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
     
  2. Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    I believe it has to do with binding a control to a BOOL. Try reading through this thread for more info.
     

Share This Page