• 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: "I. Savant" <email@hidden>
  • Date: Wed, 11 Feb 2009 19:48:34 -0500

On Feb 11, 2009, at 7:37 PM, Luke Evans wrote:

... and it's cold comfort to find that the behaviour is exactly the same. So, at least there isn't 'another' problem :-)


Well, actually, I realize now that my statement was ambiguous. I meant that asking via -valueForKey: and providing the keypath should do the same thing *you originally intended* and return a set *as expected*.

If using this code (with all your work-arounds removed) produces the same result, you've got a problem in your code and it's best you "come clean" with a complete code listing of the relevant parts.

To be clear: I have a project of my own that regularly uses the same approach (finding the siblings by a key path @"parent.children") via [self valueForKeyPath:@"..."] and it works as expected every time.

Do I remember correctly that you're using GC? Perhaps you have a dangling pointer somewhere?

--
I.S.

_______________________________________________

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: 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>)
 >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>)

  • Prev by Date: Re: Core Data: right way to gather all elements of a to-many relationship?
  • Next by Date: Application Architecture or approach
  • Previous by thread: Re: Core Data: right way to gather all elements of a to-many relationship?
  • Next by thread: NSPopupButton in NSTableView header?
  • Index(es):
    • Date
    • Thread