Started mocking the implementation of uiBox.
This commit is contained in:
parent
32905f5989
commit
0d27b4e30f
|
@ -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
|
Loading…
Reference in New Issue