Unable to find nib named: in bundle path:


#1

The downloaded code for Departments works for me, but when I do it myself I get this error. I’ve compared my code and xib files to the downloaded code and I can’t find anything different. What am I doing wrong, or at least where might I look to figure it out? (Working on 10.7, XCode 4.5.)

2012-10-14 13:14:18.243 Departments[5779:403] unable to find nib named: Department View in bundle path: (null)
2012-10-14 13:14:18.248 Departments[5779:403] -[NSViewController loadView] could not load the “Department View” nib.
2012-10-14 13:14:18.251 Departments[5779:403] (
0 CoreFoundation 0x00007fff8f984f56 __exceptionPreprocess + 198
1 libobjc.A.dylib 0x00007fff93901d5e objc_exception_throw + 43
2 CoreFoundation 0x00007fff8f984d8a +[NSException raise:format:arguments:] + 106
3 CoreFoundation 0x00007fff8f984d14 +[NSException raise:format:] + 116
4 AppKit 0x00007fff8decc865 -[NSViewController loadView] + 336
5 AppKit 0x00007fff8dec84ae -[NSViewController view] + 41
6 Departments 0x00000001000011be -[MyDocument displayViewController:] + 142
7 Departments 0x0000000100001521 -[MyDocument windowControllerDidLoadNib:] + 529
8 AppKit 0x00007fff8df983b0 -[NSWindowController _windowDidLoad] + 667
9 AppKit 0x00007fff8df8fa11 -[NSWindowController window] + 109
10 AppKit 0x00007fff8df8f85d -[NSWindowController showWindow:] + 40
11 AppKit 0x00007fff8df8f810 -[NSDocument showWindows] + 107
12 AppKit 0x00007fff8df8bea9 -[NSDocumentController openUntitledDocumentAndDisplay:error:] + 428
13 AppKit 0x00007fff8df8bcca -[NSDocumentController newDocument:] + 38
14 CoreFoundation 0x00007fff8f97470d -[NSObject performSelector:withObject:] + 61
15 AppKit 0x00007fff8de9ef7e -[NSApplication sendAction:to:from:] + 139
16 AppKit 0x00007fff8df8bbfb -[NSMenuItem _corePerformAction] + 399
17 AppKit 0x00007fff8df8b932 -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 125
18 AppKit 0x00007fff8df09524 -[NSMenu performKeyEquivalent:] + 281
19 AppKit 0x00007fff8df08175 -[NSApplication _handleKeyEquivalent:] + 526
20 AppKit 0x00007fff8de01536 -[NSApplication sendEvent:] + 4282
21 AppKit 0x00007fff8dd980c6 -[NSApplication run] + 555
22 AppKit 0x00007fff8e014244 NSApplicationMain + 867
23 Departments 0x0000000100000ee2 main + 34
24 Departments 0x0000000100000eb4 start + 52
)


#2

first off, don’t use Spaces.

Can someone confirm that he needs escape characters for spaced names?

By escape characters, I mean:

NSSTring *fileName = @“Department View”;

should read:

NSString *fileName = @“Department\ View”

Try that (a backslash before each space).

Can you post the code which is causing the dilemma? As well as the exact XIB file name?