Started mocking the implementation of uiBox.

This commit is contained in:
Pietro Gagliardi 2015-07-31 23:25:59 -04:00
parent 32905f5989
commit 0d27b4e30f
1 changed files with 40 additions and 0 deletions

40
redo/osxaltest/box.m Normal file
View File

@ -0,0 +1,40 @@
// 31 july 2015
#import "osxaltest.h"
@interface tBox : NSObject<tControl> {
NSMutableArray *children;
NSView *sv;
}
@end
@implementation tBox
- (id)init
{
self = [super init];
if (self) {
self->children = [NSMutableArray new];
self->sv = nil;
}
return self;
}
- (void)addControl:(NSObject<tControl> *)c stretchy:(BOOL)s
{
// TODO
}
- (void)tAddToView:(NSView *)v
{
self->sv = v;
// TODO
}
- (uintmax_t)tAddToAutoLayoutDictionary:(NSMutableDictionary *)views keyNumber:(uintmax_t)n
{
// TODO
}
// TODO build auto layout constraints
@end