Call URLCache From Another NIB

Discussion in 'iOS Programming' started by andrewtparker01, Apr 23, 2009.

  1. andrewtparker01 macrumors newbie

    Apr 23, 2009

    I thought I was starting to understand NIBs, Views, Controllers, but I may have more to learn.:rolleyes:

    I want to call the iPhone SDK sample application "URLCache" from my own application and NIB. Here's what I though I should do:

    1. Dragged the .h and .m from the sample application into my application.
    2. Dragged the sample NIB into my application.
    3. Make a call from my application to URLCache using code like:

    Leaf3TestController *d = [[Leaf3TestController alloc] init];
    if (![NSBundle loadNibNamed:mad:"Level3Test" owner:d]) {
    NSLog(@"Error loading Nib for document!");

    It gives a runtime error relating to:

    [NSBundle loadNibNamed:eek:wner:]: unrecognized selector sent to class 0xa06b0aa0:confused:

    Has any one successfully called incorporated URLCache into their application?



Share This Page