• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Core Data and Binding: NSWindowController object fails to load identical window (with different name)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: Re: Predicate variable substitution
  • Next by Date: Sync services exception: "references to the following undefined objects"
  • Previous by thread: Re: Creating a clock and updating a textfield
  • Next by thread: Sync services exception: "references to the following undefined objects"
  • Index(es):
    • Date
    • Thread