• 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
Core Data relationship fault
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Core Data relationship fault


  • Subject: Core Data relationship fault
  • From: Lynn Barton <email@hidden>
  • Date: Mon, 11 Apr 2011 09:54:02 -0700

Can someone point me to an example or tutorial that shows how to get the value of a to-many relationship attribute of a Core Data entity? My application is simple and comparable to the Departments and Employees example in Apple's documents. When I select a "department" object I have no trouble accessing any of its other properties, but when I try to get its "employees" I get only a relationship fault. I have tried everything that I could find in the documentation and other people's comments (Google search) without success.

I have subclassed the array controllers for "departments" and "employees". In the "departments" array controller I am trying to calculate a transient property based on the properties of the "employees" when the method -(id)tableView:(NSTableView *)aTableView objectValueForTableColumn: (NSTableColumn *)aTableColumn row:(NSInteger)rowIndex is called by the "departments" TableView.

Thanks. Lynn.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Core Data relationship fault
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: Re: AVFoundation and OpenGL?
  • Next by Date: Re: NSManagedObjected isInserted
  • Previous by thread: Re: bitmapData leak
  • Next by thread: Re: Core Data relationship fault
  • Index(es):
    • Date
    • Thread