Bindings "Prepares content" to automatically initialize some fields?
Bindings "Prepares content" to automatically initialize some fields?
- Subject: Bindings "Prepares content" to automatically initialize some fields?
- From: Christoffer Lernö <email@hidden>
- Date: Tue, 4 Oct 2005 17:37:47 +0200
Playing around with CoreData I have a situation where object A has an
optional relationship to object B, and object B has a mandatory
reference to object A.
I use bindings to create object A, but when I create object B (using
add: or similar to the NSArrayController) I want let the newly
created object B automatically be initialized with the relationship A
<-> B.
Since I am using bindings, it's easy to send A as a parameter to the
add:, but the NSArrayController won't know what it is supposed to do
with it --- or?
Can I get this to work with bindings and core-data without subclassing?
To recap:
Class A
optional relationship to B
Class B
mandatory relationship to A
An object of class A is first created using bindings. It will have no
relation to any object of class B.
I now create object B (using bindings) and want both the new object
of class B to have a relation to object of A, and object of A to
establish a relation to object of B.
/C
_______________________________________________
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