2016-04-27 22:52:28 +02:00
|
|
|
//
|
|
|
|
// AppDelegate.h
|
|
|
|
// Mini vMac
|
|
|
|
//
|
|
|
|
// Created by Jesús A. Álvarez on 27/04/2016.
|
2018-04-28 12:12:43 +02:00
|
|
|
// Copyright © 2016-2018 namedfork. All rights reserved.
|
2016-04-27 22:52:28 +02:00
|
|
|
//
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
2016-05-28 13:01:13 +02:00
|
|
|
#import "EmulatorProtocol.h"
|
2016-12-04 20:05:24 +01:00
|
|
|
#import "BTCMouse.h"
|
2016-05-11 23:04:49 +02:00
|
|
|
|
2016-06-06 19:42:10 +02:00
|
|
|
extern NSString *DocumentsChangedNotification;
|
|
|
|
|
2016-04-27 22:52:28 +02:00
|
|
|
@interface AppDelegate : UIResponder <UIApplicationDelegate>
|
|
|
|
|
|
|
|
@property (strong, nonatomic) UIWindow *window;
|
2016-05-07 20:48:53 +02:00
|
|
|
@property (nonatomic, readonly) NSString *documentsPath;
|
2018-04-28 11:49:05 +02:00
|
|
|
@property (nonatomic, readonly) NSString *userKeyboardLayoutsPath;
|
2016-05-11 23:04:49 +02:00
|
|
|
@property (nonatomic, readonly) NSArray<NSString*> *diskImageExtensions;
|
2016-05-28 22:20:55 +02:00
|
|
|
@property (nonatomic, readonly) NSArray<NSBundle*> *emulatorBundles;
|
2020-06-22 14:34:08 +02:00
|
|
|
@property (nonatomic, readonly) NSString *emulatorBundlesPath;
|
2016-05-27 20:21:32 +02:00
|
|
|
@property (readonly, nonatomic, getter = isSandboxed) BOOL sandboxed;
|
2020-09-25 00:29:30 +02:00
|
|
|
@property (readonly, nonatomic) id<Emulator> sharedEmulator;
|
2024-02-10 14:09:02 +01:00
|
|
|
@property (readonly, nonatomic) NSArray<NSString*> *keyboardLayoutPaths;
|
2016-04-27 22:52:28 +02:00
|
|
|
|
2024-02-10 13:36:20 +01:00
|
|
|
@property (class, readonly, strong) AppDelegate *sharedInstance NS_SWIFT_NAME(shared);
|
|
|
|
@property (class, readonly, strong) id<Emulator> sharedEmulator NS_SWIFT_NAME(emulator);
|
2020-09-25 22:13:52 +02:00
|
|
|
- (void)loadAndStartEmulator;
|
2016-05-28 13:01:13 +02:00
|
|
|
|
2016-05-07 20:48:53 +02:00
|
|
|
- (void)showAlertWithTitle:(NSString *)title message:(NSString *)message;
|
2016-05-11 23:04:49 +02:00
|
|
|
- (IBAction)showInsertDisk:(id)sender;
|
|
|
|
- (IBAction)showSettings:(id)sender;
|
2020-06-23 18:32:07 +02:00
|
|
|
- (IBAction)showGestureHelp:(id)sender;
|
2024-02-17 14:41:22 +01:00
|
|
|
- (UIScene*)sceneWithName:(NSString*)name;
|
2016-05-07 20:48:53 +02:00
|
|
|
|
2016-04-27 22:52:28 +02:00
|
|
|
@end
|
|
|
|
|