Re: Keypaths

2008-07-16 Thread Niklas Saers
Hi Scott & Kyle: On Jul 16, 2008, at 2:22 AM, Scott Anguish wrote: In fact, as long as you have modeled relationships from parent to child you can do it, Core Data or not. Get a reference to Balbo and Ponto and then use a keypath involving @distinctUnionOfArrays to get to it. A bit of set theo

Re: Keypaths

2008-07-15 Thread Scott Anguish
On 15-Jul-08, at 4:08 PM, Kyle Sluder wrote: On Tue, Jul 15, 2008 at 8:41 AM, Hamish Allan <[EMAIL PROTECTED]> wrote: If you were using Core Data, expressing your familial relations as to-many relationships with inverses, it would be straightforward to achieve the query you want (and indeed,

Re: Keypaths

2008-07-15 Thread Kyle Sluder
On Tue, Jul 15, 2008 at 8:41 AM, Hamish Allan <[EMAIL PROTECTED]> wrote: > If you were using Core Data, expressing your familial relations as > to-many relationships with inverses, it would be straightforward to > achieve the query you want (and indeed, to create a GUI for that > query). In fact,

Re: Keypaths

2008-07-15 Thread Hamish Allan
On Tue, Jul 15, 2008 at 11:48 AM, Niklas Saers <[EMAIL PROTECTED]> wrote: > Hi, > I've implemented a little tree through my class Node that contains the > properties NSString* name and NSMutableArray *subnodes > > I'd love to say something like "Give me the nodes that have a grand-father > named B