Mailing Lists: Apple Mailing Lists

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

CoreData Tutorial bindings



I've worked through much of the CoreData tutorial and got things to work properly, but ran into one problem that took some poking about to sort out. Although I've gone back through the tutorial, I can't find where I originally went astray. The problem was that the text label "Employee ID:" in the user interface didn't change properly in response to a different employee being selected in the table of employees. When the user interface is automatically created by Interface Builder following the instructions in the tutorial, 3 array controllers are created, two of which are for employees. When I used the NSTextFieldInspector for "Employee ID:" in the interface, it was bound to Employee Array Controller 2 (NSArrayController) rather than Employee Array Controller (NSArrayController). Changing this to Employee Array Controller (NSArrayController), that is, to the other NSArrayController that was automatically created, fixed the problem.

Question: Is there something in the tutorial that I missed, or is the tutorial deficient in not making explicit which NSArrayController Employee ID is supposed to be bound to? Or is the step I missed so obvious that someone more experienced with Cocoa would be expected to know it and therefore it was left out of the tutorial?

Thanks for your help.
Boyd
_______________________________________________
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.