Re: Fetching related objects in CoreData without NSManagedObject

2008-05-20 Thread Hamish Allan
On Wed, May 21, 2008 at 4:44 AM, Nick Zitzmann <[EMAIL PROTECTED]> wrote: > I'm getting the attributes from the records in the database using > NSManagedObjectContext and NSFetchRequest and installing them into my own > model objects. If you don't throw away the NSManagedObjects, you can use them

Re: Fetching related objects in CoreData without NSManagedObject

2008-05-20 Thread Nick Zitzmann
On May 20, 2008, at 9:36 PM, Hamish Allan wrote: But if you're using your own object caches, and not using NSManagedObject, in what way are you using Core Data? I'm getting the attributes from the records in the database using NSManagedObjectContext and NSFetchRequest and installing them i

Re: Fetching related objects in CoreData without NSManagedObject

2008-05-20 Thread Hamish Allan
On Wed, May 21, 2008 at 4:31 AM, Nick Zitzmann <[EMAIL PROTECTED]> wrote: > That involves a linear search, which is too slow with thousands of records. > SQLite should be faster than that. But if you're using your own object caches, and not using NSManagedObject, in what way are you using Core Da

Re: Fetching related objects in CoreData without NSManagedObject

2008-05-20 Thread Nick Zitzmann
On May 20, 2008, at 9:24 PM, Hamish Allan wrote: So can you not iterate through them, checking for equality to an object on the "one" side or on the "many" side? That involves a linear search, which is too slow with thousands of records. SQLite should be faster than that. Nick Zitzmann <

Re: Fetching related objects in CoreData without NSManagedObject

2008-05-20 Thread Hamish Allan
On Wed, May 21, 2008 at 4:16 AM, Nick Zitzmann <[EMAIL PROTECTED]> wrote: > I'm using my own object caches. So can you not iterate through them, checking for equality to an object on the "one" side or on the "many" side? Hamish ___ Cocoa-dev mailing l

Re: Fetching related objects in CoreData without NSManagedObject

2008-05-20 Thread Nick Zitzmann
On May 20, 2008, at 8:56 PM, Hamish Allan wrote: Query what? What collection are you using to store these objects? I'm using my own object caches. Nick Zitzmann ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.co

Re: Fetching related objects in CoreData without NSManagedObject

2008-05-20 Thread Hamish Allan
On Wed, May 21, 2008 at 2:31 AM, Nick Zitzmann <[EMAIL PROTECTED]> wrote: > I've got a data model with a many-to-one relationship. > [...] > I am not using NSManagedObject at all. > [...] > So how do I query for related objects without NSManagedObjects? Query what? What collection are you using t