Index: test/mac/swift/AppDelegate.m |
diff --git a/test/mac/swift/AppDelegate.m b/test/mac/swift/AppDelegate.m |
new file mode 100644 |
index 0000000000000000000000000000000000000000..286c23400658c1f9d75b48afe40abc60115f8faf |
--- /dev/null |
+++ b/test/mac/swift/AppDelegate.m |
@@ -0,0 +1,27 @@ |
+#import "AppDelegate.h" |
+#import "swift_mac-Swift.h" |
+ |
+@interface AppDelegate () |
+ |
+@property(nonatomic, strong) MySwiftClass* swiftField; |
+@property(nonatomic, strong) NSWindow* window; |
+ |
+@end |
+ |
+@implementation AppDelegate |
+ |
+@synthesize swiftField, window; |
+ |
+- (void)applicationDidFinishLaunching:(NSNotification*)aNotification { |
+// self.window = [[NSWindow alloc] initWithFrame:CGRectMake(0, 0, 100, 100)]; |
+// self.window.rootViewController = [[NSViewController alloc] init]; |
+// [self.window makeKeyAndVisible]; |
+ |
+ self.swiftField = [[MySwiftClass alloc] init]; |
+} |
+ |
+- (void)applicationWillTerminate:(NSNotification*)aNotification { |
+ // Insert code here to tear down your application |
+} |
+ |
+@end |