1/* 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" 11#include <crt_externs.h> 12 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 28