mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-02-16 02:20:53 +00:00
* merged moonlight-mac with moonlight-ios * reverted to the original project.pbxproj * cleaned up the code, fixed lots of unnecessary code duplications * multicontroller support (not tested) * new class that can be used for further modularization of the MainFrameViewController
32 lines
881 B
Objective-C
32 lines
881 B
Objective-C
//
|
|
// AppDelegate.h
|
|
// Moonlight
|
|
//
|
|
// Created by Diego Waxemberg on 1/17/14.
|
|
// Copyright (c) 2014 Moonlight Stream. All rights reserved.
|
|
//
|
|
|
|
#if TARGET_OS_IPHONE
|
|
#import <UIKit/UIKit.h>
|
|
|
|
@interface AppDelegate : UIResponder <UIApplicationDelegate>
|
|
|
|
@property (strong, nonatomic) UIWindow *window;
|
|
#else
|
|
#import <Cocoa/Cocoa.h>
|
|
@interface AppDelegate : NSObject <NSApplicationDelegate>
|
|
|
|
@property (readonly, strong) NSPersistentContainer *persistentContainer;
|
|
@property (strong, nonatomic) NSWindow *window;
|
|
#endif
|
|
|
|
@property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext;
|
|
@property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;
|
|
@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;
|
|
|
|
- (void)saveContext;
|
|
- (NSURL *)applicationDocumentsDirectory;
|
|
- (NSURL*) getStoreURL;
|
|
|
|
@end
|