• 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 : User missing inverse relationship despite model settings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data : User missing inverse relationship despite model settings


  • Subject: Re: Core Data : User missing inverse relationship despite model settings
  • From: Jerry Krinock <email@hidden>
  • Date: Mon, 08 Aug 2011 12:35:50 -0700

On 2011 Aug 08, at 09:43, Sean McBride wrote:

> Despite knowing that well (after learning it the hard way long ago), I found another place where I do so.  But not in a direct way!  A controller object is using KVO to observe many things.  Sometimes in response to these changes, it ends of firing a fault, which leads to more KVO, etc.

Yes, I probably have a lot of that going on too.

> Suffice to say that I ended up with awakeFromFetch in the backtrace (30 frames ago) and then changed a relationship.

I want to make sure this is not harder than I think.

My Foo class has not overridden -awakeFromFetch.

My Bar class does this…

- (void)awakeFromFetch
{
    [super awakeFromFetch] ;

    NSDictionary* exids = [[self localStoreManager] exidsForBar:self] ;
    [self setIvarExids:exids] ;
}

-localStoreManager is an object which accesses a "local" persistent store, which it identifies per the Bar object's -managedObjectContext.  Thus, we get 'exids' from this other store and cache it in  ivarExids which is, as the name implies, a regular instance variable.

With this, I conclude that I am clean as far as not setting relationships in -awakeFromFetch.  Are there other back doors which I haven't checked?

Jerry_______________________________________________

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

References: 
 >Core Data : User missing inverse relationship despite model settings (From: Jerry Krinock <email@hidden>)
 >Re: Core Data : User missing inverse relationship despite model settings (From: Sean McBride <email@hidden>)

  • Prev by Date: Re: Xcode 4 core data mapping model not creating inherited attributes/relationships
  • Next by Date: Re: CFURLWriteDataAndPropertiesToResource as root?
  • Previous by thread: Re: Core Data : User missing inverse relationship despite model settings
  • Next by thread: Re: Release build throw "unrecognized selector sent to instance" for a category method
  • Index(es):
    • Date
    • Thread