• 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: right way to gather all elements of a to-many relationship?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data: right way to gather all elements of a to-many relationship?


  • Subject: Re: Core Data: right way to gather all elements of a to-many relationship?
  • From: Luke Evans <email@hidden>
  • Date: Wed, 11 Feb 2009 14:38:10 -0800

Hmmm ... I do not have an answer for this. If nobody else can offer any insight, I'd file a bug. In fact, I'd file it anyway because this random substitution should not happen.

Yeah, I guess someone with deep knowledge of the states that a Core Data to-many relationship can be in throughout its life-cycle might be able to comment as to whether there's _any_ point in the implementation of NSManagedObject that has these relationships temporarily fielded by a proxy that responds as if it is an array (or actually being one!).


Clearly, you wouldn't even notice the switcheroo if you were driving the relationship via a more generic collection-like interface (e.g. like using -count, using fast enumeration or other things that apply equally well to a range of concrete collection objects - or at least arrays and sets).

I had a wonderment about whether some managedObjectContext locking I was doing around that access could be to blame, but this seems not to be the case through experimentation (i.e. removed the locking - still manifests).


_______________________________________________

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: right way to gather all elements of a to-many relationship?
      • From: "I. Savant" <email@hidden>
References: 
 >Core Data: right way to gather all elements of a to-many relationship? (From: Luke Evans <email@hidden>)
 >Re: Core Data: right way to gather all elements of a to-many relationship? (From: "I. Savant" <email@hidden>)
 >Re: Core Data: right way to gather all elements of a to-many relationship? (From: Luke Evans <email@hidden>)
 >Re: Core Data: right way to gather all elements of a to-many relationship? (From: "I. Savant" <email@hidden>)
 >Re: Core Data: right way to gather all elements of a to-many relationship? (From: Luke Evans <email@hidden>)
 >Re: Core Data: right way to gather all elements of a to-many relationship? (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: Core Data: right way to gather all elements of a to-many relationship?
  • Next by Date: Re: Paste with no Edit Menu
  • Previous by thread: Re: Core Data: right way to gather all elements of a to-many relationship?
  • Next by thread: Re: Core Data: right way to gather all elements of a to-many relationship?
  • Index(es):
    • Date
    • Thread