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.

This commit is contained in:
Pietro Gagliardi 2015-07-31 22:33:49 -04:00
parent c8ac7ffaf5
commit 046a7303c4
2 changed files with 31 additions and 0 deletions

29
redo/osxaltest/main.m Normal file
View File

@ -0,0 +1,29 @@
// 31 july 2015
#import "osxaltest.h"
@interface appDelegate : NSObject<NSApplicationDelegate>
@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;
}

View File

@ -0,0 +1,2 @@
// 31 july 2015
#import <Cocoa/Cocoa.h>