• 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
Re: CoreData - constraint?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >CoreData - constraint? (From: Michael Hanna <email@hidden>)

  • Prev by Date: Re: Binding a PopUpButton with images in the menu?
  • Next by Date: iSite Camera & Quicktime 7
  • Previous by thread: Re: CoreData - constraint?
  • Next by thread: Re: Categories in plugins
  • Index(es):
    • Date
    • Thread