• 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: Core Data fetch with to-many relationship
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data fetch with to-many relationship


  • Subject: Re: Core Data fetch with to-many relationship
  • From: "Melissa J. Turner" <email@hidden>
  • Date: Tue, 8 Sep 2009 19:08:35 -0700


On Sep 8, 2009, at 18:03, Alex Reynolds wrote:

Relationship fault for (<NSRelationshipDescription: 0x3d1b2b0>), name Book, isOptional 1, isTransient 0, entity Owner, renamingIdentifier Book, validation predicates (
), warnings (
), versionHashModifier (null), destination entity Book, inverseRelationship Owner, minCount 0, maxCount 0 on Owner < 123456 | username >

That's not an error, it's an unfired to-many relationship fault. If you call a method on it (say [testFetchResults valueForKey:@"name"]) it will fire and look more like what you're expecting.


BTW, it's generally a bad idea to use uppercase key names. The ivar 'Book' should probably be 'books', and 'Owner' should be 'owner' (the class names are fine the way they are).

+Melissa

_______________________________________________

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 fetch with to-many relationship
      • From: Alex Reynolds <email@hidden>
References: 
 >Core Data fetch with to-many relationship (From: Alex Reynolds <email@hidden>)

  • Prev by Date: Re: NSPDFImageRep Memory Leak?
  • Next by Date: Re: Does Mac OS X support interior pointers?
  • Previous by thread: Core Data fetch with to-many relationship
  • Next by thread: Re: Core Data fetch with to-many relationship
  • Index(es):
    • Date
    • Thread