Mailing Lists: Apple Mailing Lists

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

10.5 + Core Data project error?



When I create a fresh, new Core Data Application project with an empty data model, I get error messages from the application.

When I run it, I get the following error message when I select the Edit menu:

"The model configuration used to open the store is incompatible with the one that was used to create the store."

I then add an NSToolbar, to which I add an NSToolbarItem (which is a custom view containing an NSSearchField).

When I click inside the NSSearchField, I get the same error message.

When I modify:

- (NSManagedObjectModel *) managedObjectModel

...to replace:

managedObjectModel = [[NSManagedObjectModel mergedModelFromBundles:nil] retain];

...with:

managedObjectModel = [[NSManagedObjectModel mergedModelFromBundles: [NSBundle mainBundle]] retain];


...I no longer get the error message.

However, in the Console, I get the following error:

2007-10-31 08:44:47.640 Cino[15909:10b] *** -[NSBundle countByEnumeratingWithState:objects:count:]: unrecognized selector sent to instance 0x30cad0
2007-10-31 08:44:47.641 Cino[15909:10b] *** -[NSBundle countByEnumeratingWithState:objects:count:]: unrecognized selector sent to instance 0x30cad0


when I click inside the search field, or select the Edit menu.

Is there something I am missing in the setup procedure when creating a blank, new Core Data application? I'd like to know where the error message.

Regards,
Alex

..............................................................
Alex Reynolds, M. Biot.
Sr IT Specialist
217 Leidy Building / 6013
Department of Biology
University of Pennsylvania
Philadelphia, PA 19104

V: +1 215 573.2818
F: +1 215 898.8780
E: mailto:email@hidden
W: http://www.bio.upenn.edu/computing/

_______________________________________________

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


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.