Problem With @throw


#1

In chapter 13 I put all my code in but when i implement DetailViewController *detailViewController = [[DetailViewController alloc] initForNewItem:NO]; on page 268 I still get a problem when I click on the Item Cell. The console reads : [quote]2012-07-01 20:24:07.749 TheHomepwner[45207:f803] *** Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘Could not load NIB in bundle: ‘NSBundle </Users/tannerquigley/Library/Application Support/iPhone Simulator/5.1/Applications/13257B4E-023C-4755-92FF-F0F61893324B/TheHomepwner.app> (loaded)’ with name ‘DeatailViewController’’
*** First throw call stack:
(0x13d0022 0x1561cd6 0x1378a48 0x13789b9 0x23b638 0xe11fc 0xe1779 0xe199b 0xe1d11 0xf38fd 0xf3aef 0xf3dbb 0xf485f 0xf4e06 0xf4a24 0x28db 0xab5c5 0xab7fa 0x94085d 0x13a4936 0x13a43d7 0x1307790 0x1306d84 0x1306c9b 0x12b97d8 0x12b988a 0x1a626 0x224d 0x21b5)
terminate called throwing an exception(lldb) [/quote]


#2

Check that the name of DetailViewController.xib is correct, then check that the nib file is hooked up to the class file correctly.


#3

I forgot to return nil, but thank you your input lead me to the correct answer