• 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 Binding with NSArrayController: Replace NSArrayController w/in IB breaks the application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: tableViewSelectionDidChange not being called after selectionShouldChangeInTableView?
  • Next by Date: views from nibs
  • Previous by thread: Re: tableViewSelectionDidChange not being called after selectionShouldChangeInTableView?
  • Next by thread: views from nibs
  • Index(es):
    • Date
    • Thread