(*Solved*) Core Data and Binding: NSWindowController object fails to load identical window (with different name)
(*Solved*) Core Data and Binding: NSWindowController object fails to load identical window (with different name)
- Subject: (*Solved*) 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
- Resent-date: Sun, 30 Oct 2005 12:23:07 -0800
- Resent-from: "Frederick C. Lee" <email@hidden>
- Resent-message-id: <email@hidden>
- Resent-to: Cocoa Developers <email@hidden>
Solved.
I needed to erase ("clean all") the entire last build. Once I did
that and rebuilt the code, the problem was removed.
Ric.
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