Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Binding Problem: Displaying a new NIB fails; but a duplicate of an existing/working NIB does display.



Greetings:
I'm working with the CoreRecipes Binding/Core Data {Chef, Recipes, Ingredients entities} example.


I'm trying to create a *new* NIB to access the core data, but cannot display the NIB's window; however, loading a duplicate of an existing NIB works.

Problem: I can't load a window; that is, [windowController window] == nil.

Test Scenaro:
1) I made duplicate NIB of RecipeEditorWindow.nib called 'Smirf.nib' and changed the load code accordingly and re-ran the code.
-- Loads okay.


2) I *created* a NEW NIB ('Cocoa Empty' type) called 'Smirf.nib' (replacing the old Smirf) with the bare essentials of having only a NSWindow; re-ran the code. --- FAILS to Load.

3) I'm using the SAME customized Window Controller in both scenarios. Only the NIBs are different (one is new, the other is a duplicate of a working NIB).

Hence: a duplicate of a working NIB *works*; but a NEW NIB with the same name *fails*.

Analysis:
1) Each NIBs contains the following 'sub-nibs': a) class, b) info, and c) keyedobjects; as seen via XCode under 'English'.
2) I copied these sub-nibs from the working NIB into the *malfunctioned* NIB (the NIB that was created, not duplicated).
--- It Works! The new NIB with the copied sub-NIBS (class, info & keyedobjects) does get loaded.


===============
Question: What am I missing within the program source code that prevents me from creating a viable new NIB (with the correct keyedobjects, etc.)?


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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.