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

CoreData to-many relationships


  • Subject: CoreData to-many relationships
  • From: August Trometer <email@hidden>
  • Date: Sat, 21 May 2005 12:48:35 -0500

I am trying to learn CoreData techniques. I've gone over CocoaDevCentral's excellent tutorial. But now, working on my own test project, I'm not tying something together correctly.

I have 2 Entities, mailbox and message. Each has various attributes. I've also defined relationships between the two, so mailbox to message is a to-many relationship and message to mailbox is a one to one relationship.

Now, in IB, I'm trying to set things up similar to Mail.app. I have a table of mailboxes. I also have a table of messages. My mailboxes controller is bound to the AppDelegate/managedObjectContext, as is mailboxes.

I can add to and remove from both of these just fine. However, it seems that the messages are not tied to the selected mailbox. The message table always lists all messages, not messages for a particular mailbox. In the application's XML data, there is no indication that any such relationship is being saved, so I don't think my mistake is in IB.

I've rebuilt the data model several times, trying many different variations to no avail. Any suggestions where to look?

Thanks!

August


_______________________________________________ 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
  • Follow-Ups:
    • Re: CoreData to-many relationships
      • From: mmalcolm crawford <email@hidden>
    • Re: CoreData to-many relationships
      • From: Scott Stevenson <email@hidden>
  • Prev by Date: Re: Strategy for using common classes in multiple Cocoa plug-ins?
  • Next by Date: NSTextField and clickable link
  • Previous by thread: Re: [[eSellerateObject alloc] init] causes SIGTRAP
  • Next by thread: Re: CoreData to-many relationships
  • Index(es):
    • Date
    • Thread