• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
setUserInfo - how to use?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

setUserInfo - how to use?


  • Subject: setUserInfo - how to use?
  • From: "Steve@MacDotCom" <email@hidden>
  • Date: Mon, 23 Jan 2006 21:58:02 -0600

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


  • Prev by Date: Re: suppressing the scod at startup
  • Next by Date: Re: invertrect, any cocoa versions suggested?
  • Previous by thread: Core Data + MultiThreading
  • Next by thread: chapter tool xml
  • Index(es):
    • Date
    • Thread