OLD | NEW |
1 // | 1 /* |
2 // SkExampleNSView.m | 2 * Copyright 2015 Google Inc. |
3 // SkiaExamples | 3 * |
4 // | 4 * Use of this source code is governed by a BSD-style license that can be |
5 // Created by Sergio González on 6/11/13. | 5 * found in the LICENSE file. |
6 // | 6 */ |
7 // | |
8 | 7 |
9 #import "SkExampleNSView.h" | 8 #import "HelloWorldNSView.h" |
10 | 9 |
11 #include "SkApplication.h" | 10 #include "SkApplication.h" |
12 #include <crt_externs.h> | 11 #include <crt_externs.h> |
13 | 12 |
14 @implementation SkExampleNSView | 13 @implementation HelloWorldNSView |
15 | 14 |
16 - (id)initWithDefaults { | 15 - (id)initWithDefaults { |
17 if ((self = [super initWithDefaults])) { | 16 if ((self = [super initWithDefaults])) { |
18 fWind = create_sk_window(self, *_NSGetArgc(), *_NSGetArgv()); | 17 fWind = create_sk_window(self, *_NSGetArgc(), *_NSGetArgv()); |
19 } | 18 } |
20 return self; | 19 return self; |
21 } | 20 } |
22 | 21 |
23 - (void)dealloc { | 22 - (void)dealloc { |
24 delete fWind; | 23 delete fWind; |
25 [super dealloc]; | 24 [super dealloc]; |
26 } | 25 } |
27 | 26 |
28 @end | 27 @end |
OLD | NEW |