Files
cocos4/native/templates/mac/ViewController.mm
T
2021-01-11 11:54:32 +08:00

18 lines
295 B
Plaintext

#import "ViewController.h"
#import "platform/mac/View.h"
@implementation ViewController
{
View* _view;
}
- (instancetype)initWithSize:(NSRect)rect {
if (self = [super init]) {
_view = [[View alloc] initWithFrame:rect];
self.view = _view;
}
return self;
}
@end