Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 10.5 + Core Data project error?




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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >10.5 + Core Data project error? (From: Alex Reynolds <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.