• 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 to-many relationships
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CoreData to-many relationships


  • Subject: Re: CoreData to-many relationships
  • From: mmalcolm crawford <email@hidden>
  • Date: Sat, 21 May 2005 11:29:19 -0700


On May 21, 2005, at 11:04 AM, Scott Stevenson wrote:

Messages controller:
    managedObjectContext -> AppDelegate, managedObjectContext
    contentSet = Mailbox Controller, selection.messages


Note that in this case you should probably also enable the Deletes Objects On Remove option for the contentSet binding. This will mean that when a message is deleted, on save it is actually removed from the store rather than just from the relationship. Otherwise you'll have messages in the store not assigned to any mailbox (this may also break a relationship integrity constraint in your model -- if the [Message] -> [Mailbox] relationship is mandatory -- and prevent you from saving in the first place...).


mmalc

_______________________________________________
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 to-many relationships (From: August Trometer <email@hidden>)
 >Re: CoreData to-many relationships (From: Scott Stevenson <email@hidden>)
 >Re: CoreData to-many relationships (From: Scott Stevenson <email@hidden>)

  • Prev by Date: Re: [NSInternalConsistencyException] Setting a drawer's new content view under Tiger
  • Next by Date: What does "NS" means ?
  • Previous by thread: Re: CoreData to-many relationships
  • Next by thread: Re: CoreData to-many relationships
  • Index(es):
    • Date
    • Thread