Core Data and Binding: NSWindowController object fails to load identical window (with different name)
Core Data and Binding: NSWindowController object fails to load identical window (with different name)
- Subject: Core Data and Binding: NSWindowController object fails to load identical window (with different name)
- From: "Frederick C. Lee" <email@hidden>
- Date: Sat, 29 Oct 2005 16:24:35 -0700
Greetings:
I'm currently deciphering the code of CoreRecipes application from
Apple.
Scenario:
I'm attempting to code along with CoreRecipes and have hit
another snag. I'm at the point where I'm trying to load a window in
another NSWindowController object. What I got was a nil for the
[RecipeWindowController window] instance. The initial window was
merely a simple shell stating "hello world" or whatever (missing
bindings, etc.)
The second attempt was dissect the original code, this time making a
DUPLICATE of 'RecipeEditorWindow.nib' called 'smirf.nib'.
The following is the code snippet (the working statement is commented
out:
...
...
// *** NOTE: 'smirf' is an identical copy of "RecipeEditorWidow" but
the appl fails to load it. ***
// RecipeWindowController *windowController =
[[RecipeWindowController alloc]
initWithWindowNibName:@"RecipeEditorWindow"]; <-- Good
RecipeWindowController *windowController = [[RecipeWindowController
alloc] initWithWindowNibName:@"Smirf"]; <-- Bad
...
...
'Smirf' is a duplicate of 'RecipeEditorWindow'; yet it fails to load.
Why?
Best Regards,
Ric.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden