Mailing Lists: Apple Mailing Lists

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

Re: CoreData Tutorial bindings




On Jul 27, 2005, at 6:36 PM, Boyd Collier wrote:

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?

The tutorial does not require that the employee ID text field be altered. Interface Builder creates the user interface automatically, and I can't offhand think of any reason why it should make an erroneous connection as you describe. What happens if you remove the existing user interface elements and the controllers, and recreate the UI from scratch (as described in <http://developer.apple.com/ documentation/Cocoa/Conceptual/NSPersistentDocumentTutorial/ 02_CreatingProj/chapter_3_section_4.html>)?


mmalc

_______________________________________________
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
References: 
 >CoreData Tutorial bindings (From: Boyd Collier <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.