Re: CoreData - constraint?
Re: CoreData - constraint?
- Subject: Re: CoreData - constraint?
- From: John Timmer <email@hidden>
- Date: Fri, 01 Jul 2005 17:45:17 -0400
> I have a simple datamodel, an Entry can have many Passages. The
> interface has two tableviews, one for entries, one for passages. The
> thing I don't understand is that I can create passages via an
> nsarraycontroller -add even though there are no entries wouldn't the
> one-to-many relationship in the datamodel constrain that?
>
> I am using bindings..
To get more elaborate behavior, you either can't connect into the "add"
method, or you need to subclass the array controller. Array controllers
aren't psychic, and they can't tell what constraints you need to put on
things - they're coded for the most common case situation. Doing anything
less common requires code.
JT
_______________________________________________
This mind intentionally left blank
_______________________________________________
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