setUserInfo - how to use?
setUserInfo - how to use?
Folks;
In Apple doc's for NSEntityDescription it says:
"...- (void)setUserInfo:(NSDictionary *)dictionary
... Special Considerations: This method raises an exception if the
receiver’s model has been used by an object graph manager..."
1) How do you invoke this method WITHOUT the model being used the
object graph manager?
2) Here's my CoreData launch psuedo-code:
//build the MOM from available bundles
NSMutableSet *momBundles = [[NSMutableSet alloc] init];
[momBundles addObject: [NSBundle mainBundle]];
[momBundles addObjectsFromArray: [NSBundle allFrameworks]];
managedObjectModel = [NSManagedObjectModel
mergedModelFromBundles: [momBundles allObjects]];
...
//create the PersistantStoreCoordinator and init with MOM
persistentStoreCoordinator = [[NSPersistentStoreCoordinator
alloc] initWithManagedObjectModel:managedObjectModel];
...
// create the MOC and set its PSC and merge policy
managedObjectContext = [[NSManagedObjectContext alloc] init];
[managedObjectContext
setPersistentStoreCoordinator:persistentStoreCoordinator];
..
// load the store
[[self persistentStoreCoordinator]
addPersistentStoreWithType:NSSQLiteStoreType configuration:nil
URL:defaultStoreURL options:nil error:nil];
Where in this sequence is the MOM 'used' by the object graph manager?
Or has it been 'used' yet?
Links appreciated! Thanks ahead of time!
Steve
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden