JubeatPlus 3.9.11
Loading...
Searching...
No Matches
ScoreRecordManager Class Reference

Owns the persisted score records. More...

#include <ScoreRecordManager.h>

Inheritance diagram for ScoreRecordManager:
Collaboration diagram for ScoreRecordManager:

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.

Detailed Description

Owns the persisted score records.

Method Documentation

◆ saveRecords

- (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.

Ghidra address:
0x17174c
Ghidra address:
0x17174c

Property Documentation

◆ managedObjectContext

- (NSManagedObjectContext *) managedObjectContext
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.

Ghidra address:
0x1717a8

◆ managedObjectModel

- (NSManagedObjectModel *) managedObjectModel
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.

Ghidra address:
0x171850
Ghidra address:
0x171850

◆ persistentStoreCoordinator

- (NSPersistentStoreCoordinator *) persistentStoreCoordinator
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.

Ghidra address:
0x171940
Ghidra address:
0x171940

◆ sharedManager

- (ScoreRecordManager *) sharedManager
readnonatomicassign

The shared instance.

DECLARED ONLY — the body has not been located yet. See TYPES_PENDING.md.

Ghidra address:
0x1716cc
Ghidra address:
0x17170c

The documentation for this class was generated from the following files: