On Feb 20, 2011, at 10:23 PM, Shane wrote:
...
Shane,
you usually need these initial steps for virtually any Core Data application:
(please refer to corresponding documentation for each CoreData class and method
mentioned!)
@interface SomeDelegateOrControllerOrElse (CoreDataAdditions) {
NS
On Sun, Feb 20, 2011 at 2:38 PM, Shane
wrote:
> "The Managed Object Context can handle data persistence transparently,
> so only more advanced applications need interact directly with the
> Coordinator."
You need a PSC because MOMs are attached to a PSC. The MOC can't get a
MOM without a PSC.
Ju
t];
>
>// error is happening on this next line
>network = [NSEntityDescription
>insertNewObjectForEntityForName:@"Network"
>inManagedObjectContext:context];
>}
>
> +entityForName: could not locate an NSManagedObjectModel for entity
>name
>> See my followup email. I meant to discard the first one I sent. :)
>>
But then, I keep running into explanations like this that make me
think I don't have to do anything w/ the data store as there's a
default setup. And I therefore am not doing anything yet w/ a
coordinator.
"The Managed Objec
On Sun, Feb 20, 2011 at 3:54 PM, Kyle Sluder wrote:
> On Sun, Feb 20, 2011 at 1:48 PM, Shane
> wrote:
>> I thought by including the property that shows it's being synthesized
>> would show that, and maybe this is where I've gone wrong. I have added
>> a property to my apps main controller …
>
> S
On Sun, Feb 20, 2011 at 1:48 PM, Shane
wrote:
> I thought by including the property that shows it's being synthesized
> would show that, and maybe this is where I've gone wrong. I have added
> a property to my apps main controller …
See my followup email. I meant to discard the first one I sent.
>
> Since we have no idea where self.managedCoreDataObjectContext gets
> set, I'm can only make a wild leap that -managedCoreDataObjectContext
> is returning nil.
>
I thought by including the property that shows it's being synthesized
would show that, and maybe this is where I've gone wrong. I hav
Well *that* wasn't the Discard button. Ignore that message, please.
Now for meaningful questions: have you created a persistent store
coordinator with your managed object model?
--Kyle Sluder
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Plea
On Sun, Feb 20, 2011 at 1:23 PM, Shane
wrote:
> Trying to learn core data and I have added it to my application while
> swapping out my old ways. So I have this initially ...
>
> @synthesize managedCoreDataObjectContext;
>
> - (void) awakeFromNib
> {
> ...
> [self setManagedCoreDataO
:@"Network"
inManagedObjectContext:context];
}
+entityForName: could not locate an NSManagedObjectModel for entity
name 'Network'
Network is a class that is subclassed from NSManagedObject, and
included in my project. My *.xcdatamodel file is also included in thi
10 matches
Mail list logo