View Full Version : Call URLCache From Another NIB

Apr 23, 2009, 11:57 PM

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:@"Level3Test" owner:d]) {
NSLog(@"Error loading Nib for document!");

It gives a runtime error relating to:

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

Has any one successfully called incorporated URLCache into their application?