2014-08-30 22:46:31 -04:00
|
|
|
//
|
|
|
|
|
// AppDelegate.h
|
2015-05-12 21:48:30 -04:00
|
|
|
// Moonlight
|
2014-08-30 22:46:31 -04:00
|
|
|
//
|
2014-08-31 13:13:46 -04:00
|
|
|
// Created by Diego Waxemberg on 1/17/14.
|
2015-05-12 21:48:30 -04:00
|
|
|
// Copyright (c) 2014 Moonlight Stream. All rights reserved.
|
2014-08-30 22:46:31 -04:00
|
|
|
//
|
|
|
|
|
|
2018-03-27 08:50:40 +02:00
|
|
|
#if TARGET_OS_IPHONE
|
2014-08-30 22:46:31 -04:00
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
|
|
|
|
|
@interface AppDelegate : UIResponder <UIApplicationDelegate>
|
|
|
|
|
|
|
|
|
|
@property (strong, nonatomic) UIWindow *window;
|
2018-03-27 08:50:40 +02:00
|
|
|
#else
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
@interface AppDelegate : NSObject <NSApplicationDelegate>
|
|
|
|
|
|
|
|
|
|
@property (readonly, strong) NSPersistentContainer *persistentContainer;
|
|
|
|
|
@property (strong, nonatomic) NSWindow *window;
|
|
|
|
|
#endif
|
2014-08-30 22:46:31 -04:00
|
|
|
|
|
|
|
|
@property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext;
|
|
|
|
|
@property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;
|
|
|
|
|
@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;
|
|
|
|
|
|
|
|
|
|
- (void)saveContext;
|
|
|
|
|
- (NSURL *)applicationDocumentsDirectory;
|
2014-10-29 00:47:51 -04:00
|
|
|
- (NSURL*) getStoreURL;
|
2014-08-30 22:46:31 -04:00
|
|
|
|
|
|
|
|
@end
|