I am inserting a new Folder entity into my model object context (MOC), that is a child of the master MOC. Before saving, [[newFolder objectID] isTemporaryId] returns YES. When I save first my MOC and then the master MOC and ask the [[newFolder objectID] isTemporaryId], it again says YES. I expected it to now be a persisted object, and indeed, if I interrogate the SQLite file, it contains the new folder. For the entire time of my running application, it will say YES. Not before I quit and restart, thus loading the object up from the store, does it say NO.
I always thought a NSManagedObject changed from a temporary object to a stored object with no longer a temporary objectID when it was saved. When does an object get a objectID that is not temporary?
Cheers
Nik