blob: 63852e5250222b245c9b284b13cb21b3d2658084 [file] [log] [blame]
caryclark52edc4d2015-02-02 12:55:14 -08001/*
2 * Copyright 2015 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#import "HelloWorldNSView.h"
9
10#include "SkApplication.h"
Ben Wagner63fd7602017-10-09 15:45:33 -040011#include <crt_externs.h>
caryclark52edc4d2015-02-02 12:55:14 -080012
13@implementation HelloWorldNSView
14
15- (id)initWithDefaults {
16 if ((self = [super initWithDefaults])) {
17 fWind = create_sk_window(self, *_NSGetArgc(), *_NSGetArgv());
18 }
19 return self;
20}
21
22- (void)dealloc {
23 delete fWind;
24 [super dealloc];
25}
26
27@end