Core Data Binding with NSArrayController: Replace NSArrayController w/in IB breaks the application
Core Data Binding with NSArrayController: Replace NSArrayController w/in IB breaks the application
- Subject: Core Data Binding with NSArrayController: Replace NSArrayController w/in IB breaks the application
- From: "Frederick C. Lee" <email@hidden>
- Date: Wed, 19 Oct 2005 13:22:22 -0700
Greetings:
I'm toying with a simple Core Data + Binding example supplied by
Apple: Core Recipes ("Working with Core Data and Cocoa Bindings").
Scenario:
1) Data Diagram: Chef --> Recipe --> Ingredient (1:many...)
1a) The Recipe and Ingredient tables have their respective
NSArrayController.
2) I replaced an original NSArrayController via IB ('Ingredient'
array controller - child of recipe) with the SAME NSArrayController
icon from the IB Palette; and set the attribute/bindings accordingly
- per original setup. <-- I wanted to break/repair the code.
4) Re-build and ran: the NSArrayController no-longer works.
Clues: a) The program complains when I misspelled a key-value link or
merely turned off the binding. <-- obvious.
b) But if I delete the controller from IB and recreate
it afresh, with the SAME attribute/binding connections; it still
doesn't function. Why??
c) Replacing the entire NIB with a backup restores full
functionality. <-- The only remedy.
My simple question: Is it possible to merely replace a
NSArrayController and the parameter values, etc. (e.g., replace an
original with its duplicate), purely within the Interface Builder and
have it perform as expected? How do I fix this without having to
reload a backup NIB?
My goal is to be able to add functionality to an existing code via IB
by adding controllers and adjusting the attribute/bindings accordingly.
It's my 'learning process'.
Regards,
Ric.
Bindings Neophyte
_______________________________________________
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