From 046a7303c4facd32f97f66e4b7759d9961de73d3 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 31 Jul 2015 22:33:49 -0400 Subject: [PATCH] Started mocking out how uiBox will work in Auto Layout. This will be a separate program for now; hopefully I can salvage its code for the actual implementation. --- redo/osxaltest/main.m | 29 +++++++++++++++++++++++++++++ redo/osxaltest/osxaltest.h | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 redo/osxaltest/main.m create mode 100644 redo/osxaltest/osxaltest.h diff --git a/redo/osxaltest/main.m b/redo/osxaltest/main.m new file mode 100644 index 00000000..c1d1a65c --- /dev/null +++ b/redo/osxaltest/main.m @@ -0,0 +1,29 @@ +// 31 july 2015 +#import "osxaltest.h" + +@interface appDelegate : NSObject +@end + +@implementation appDelegate + +- (void)applicationDidFinishLaunching:(NSNotification *)note +{ +} + +- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)a +{ + return YES; +} + +@end + +int main(int argc, char *argv[]) +{ + NSApplication *app; + + app = [NSApplication sharedApplication]; + [app setActivationPolicy:NSApplicationActivationPolicyRegular]; + [app setDelegate:[appDelegate new]]; + [app run]; + return 0; +} diff --git a/redo/osxaltest/osxaltest.h b/redo/osxaltest/osxaltest.h new file mode 100644 index 00000000..5c54309c --- /dev/null +++ b/redo/osxaltest/osxaltest.h @@ -0,0 +1,2 @@ +// 31 july 2015 +#import