Re: 10.5 + Core Data project error?
Re: 10.5 + Core Data project error?
- Subject: Re: 10.5 + Core Data project error?
- From: mmalc crawford <email@hidden>
- Date: Wed, 31 Oct 2007 06:04:28 -0700
On Oct 31, 2007, at 5:53 AM, Alex Reynolds wrote:
When I create a fresh, new Core Data Application project with an
empty data model, I get error messages from the application.
Are you doing anything else before the first build (e.g. adding other
frameworks)?
When I modify:
- (NSManagedObjectModel *) managedObjectModel
...to replace:
managedObjectModel = [[NSManagedObjectModel
mergedModelFromBundles:nil] retain];
...with:
managedObjectModel = [[NSManagedObjectModel mergedModelFromBundles:
[NSBundle mainBundle]] retain];
NSArray bundleArray = [NSArray arrayWithObject:[NSBundle mainBundle]];
managedObjectModel = [[NSManagedObjectModel mergedModelFromBundles:
bundleArray] retain];
(Mea culpa earlier -- code typed in Mail...)
mmalc
_______________________________________________
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