Re: Using Core Data NSManagedObject subclasses outside of a managed object context

2009-08-27 Thread Mike Abdullah
Further to earlier answers, reread the docs on -[NSManagedObject initWithEntity:managedObjectContext:] There's nothing to stop you doing this: NSManagedObject *object = [[NSManagedObject alloc] initWithEntity:entity managedObjectContext:nil]; [object setFoo:bar]; as long as you supply a va

re: Using Core Data NSManagedObject subclasses outside of a managed object context

2009-08-24 Thread Ben Trumbull
I have objects that I use with core data that were automatically generated for me by xcode and represent entities in my data store. They all subclass NSManagedObject, and do not have instance variables, but instead use the @dynamic setting for their properties, pretty standard. My understan

Re: Using Core Data NSManagedObject subclasses outside of a managed object context

2009-08-23 Thread Quincey Morris
On Aug 23, 2009, at 17:32, Dieterich Lawson wrote: I have objects that I use with core data that were automatically generated for me by xcode and represent entities in my data store. They all subclass NSManagedObject, and do not have instance variables, but instead use the @dynamic setting

Re: Using Core Data NSManagedObject subclasses outside of a managed object context

2009-08-23 Thread Jerry Krinock
On 2009 Aug 23, at 17:32, Dieterich Lawson wrote: Does anyone know of a way to modify the objects so that I can use them wherever I want without having to insert them into a managed object context? No, you can't to that. But you're asking the wrong question. The problem is not the manag

Using Core Data NSManagedObject subclasses outside of a managed object context

2009-08-23 Thread Dieterich Lawson
Hey all, I have objects that I use with core data that were automatically generated for me by xcode and represent entities in my data store. They all subclass NSManagedObject, and do not have instance variables, but instead use the @dynamic setting for their properties, pretty standard. My underst