aboutsummaryrefslogtreecommitdiffhomepage
path: root/example/mac/HelloWorldNSView.mm
blob: dcc82e34dcdf99d42404f26474f6fdb4cd449975 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
 * Copyright 2015 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#import "HelloWorldNSView.h"

#include "SkApplication.h"
#include <crt_externs.h>  

@implementation HelloWorldNSView

- (id)initWithDefaults {
    if ((self = [super initWithDefaults])) {
        fWind = create_sk_window(self, *_NSGetArgc(), *_NSGetArgv());
    }
    return self;
}

- (void)dealloc {
    delete fWind;
    [super dealloc];
}

@end