OLD | NEW |
(Empty) | |
| 1 #import "AppDelegate.h" |
| 2 #import "swift_mac-Swift.h" |
| 3 |
| 4 @interface AppDelegate () |
| 5 |
| 6 @property(nonatomic, strong) MySwiftClass* swiftField; |
| 7 @property(nonatomic, strong) NSWindow* window; |
| 8 |
| 9 @end |
| 10 |
| 11 @implementation AppDelegate |
| 12 |
| 13 @synthesize swiftField, window; |
| 14 |
| 15 - (void)applicationDidFinishLaunching:(NSNotification*)aNotification { |
| 16 // self.window = [[NSWindow alloc] initWithFrame:CGRectMake(0, 0, 100, 100)]; |
| 17 // self.window.rootViewController = [[NSViewController alloc] init]; |
| 18 // [self.window makeKeyAndVisible]; |
| 19 |
| 20 self.swiftField = [[MySwiftClass alloc] init]; |
| 21 } |
| 22 |
| 23 - (void)applicationWillTerminate:(NSNotification*)aNotification { |
| 24 // Insert code here to tear down your application |
| 25 } |
| 26 |
| 27 @end |
OLD | NEW |