2
0

Push notifications support & remove Test configuration.

This commit is contained in:
Maarten Billemont
2020-03-13 12:15:24 -04:00
parent 56f5870bbb
commit 07250d50fd
8 changed files with 58 additions and 307 deletions

View File

@@ -31,20 +31,16 @@
@implementation MPAppDelegate_Shared
static MPAppDelegate_Shared *instance;
+ (MPAppDelegate_Shared *)get {
#if TARGET_OS_IPHONE
return (MPAppDelegate_Shared *)UIApp.delegate;
#elif defined (__MAC_OS_X_VERSION_MIN_REQUIRED)
return (MPAppDelegate_Shared *)[NSApplication sharedApplication].delegate;
#else
#error Unsupported OS.
#endif
return instance;
}
- (instancetype)init {
if (!(self = [super init]))
if (!(self = instance = [super init]))
return nil;
NSManagedObjectModel *model = [NSManagedObjectModel mergedModelFromBundles:nil];