|
JubeatPlus 3.9.11
|
Owns the persisted score records. More...
#include <ScoreRecordManager.h>


Instance Methods | |
| (void) | - saveRecords |
| Flushes pending score-record changes to the store. | |
Properties | |
| ScoreRecordManager * | sharedManager |
| The shared instance. | |
| NSManagedObjectContext * | managedObjectContext |
| The Core Data context the records live in. | |
| NSManagedObjectModel * | managedObjectModel |
| The compiled Core Data model, loaded from the bundle on first use. | |
| NSPersistentStoreCoordinator * | persistentStoreCoordinator |
| The store coordinator, opened on first use. | |
Owns the persisted score records.
| - (void) saveRecords |
Flushes pending score-record changes to the store.
Does nothing when the context is nil or reports no changes. Both the result of -save: and the NSError it can write are discarded, so a failed save is silent.
|
readnonatomicassign |
The Core Data context the records live in.
Backed by the _managedObjectContext ivar, whose offset global is at 0x34b39c. Nullable: -saveRecords guards against it being nil rather than assuming it exists.
|
readnonatomicassign |
The compiled Core Data model, loaded from the bundle on first use.
Built lazily by a hand-written getter, not synthesised. Nil when the model resource is missing, which is the only route by which managedObjectContext can end up nil.
|
readnonatomicassign |
The store coordinator, opened on first use.
Also hand-written and lazy. It opens a SQLite store in the Documents directory with automatic migration and automatic mapping-model inference both enabled, which is what allows ScoreMigrationPolicy to run without a shipped mapping model.
It does not fail softly: a store that will not open calls abort(), so the declared nullability is never actually exercised on that path.
|
readnonatomicassign |
The shared instance.
DECLARED ONLY — the body has not been located yet. See TYPES_PENDING.md.