Core Data MOM configurations and renaming...
Core Data MOM configurations and renaming...
- Subject: Core Data MOM configurations and renaming...
- From: Martin Linklater <email@hidden>
- Date: Fri, 7 Mar 2008 23:13:02 +0000
Hi - I'm having some problems with MOM configurations. I have been
playing about with some data models and have duplicated and renamed
one. When I initialise the MOM using the datamodel name I get results
that don't make sense. Here's a snippet of my code:
NSURL* dataDumpURL = [[NSURL alloc] initFileURLWithPath:[bundle
pathForResource:@"OptDataDump" ofType:@"mom"]];
dataDumpMOM = [[NSManagedObjectModel alloc]
initWithContentsOfURL:dataDumpURL];
NSArray *temp = [dataDumpMOM configurations];
My data model in XCode has the filename OptDataDump.xcdatamodel. The
dataDump MOM is initialised with no errors, using the URL created on
the first line ('OptDataDump'). Yet when I poll the MOM and get it to
put it's configurations into an array (the last line of the code) I
get a string value 'DataDump'.
This 'OptDataDump' was copied and renamed from 'DataDump', but I can't
figure out why the MOM is getting the old configuration name from -
where else is it stored apart from the filename ?
Thanks for any help you can give.
- Martin
_______________________________________________
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