1 // 2 // SkExampleNSView.m 3 // SkiaExamples 4 // 5 // Created by Sergio Gonzlez on 6/11/13. 6 // 7 // 8 9 #import "SkExampleNSView.h" 10 11 #include "SkApplication.h" 12 #include <crt_externs.h> 13 14 @implementation SkExampleNSView 15 16 - (id)initWithDefaults { 17 if ((self = [super initWithDefaults])) { 18 fWind = create_sk_window(self, *_NSGetArgc(), *_NSGetArgv()); 19 } 20 return self; 21 } 22 23 - (void)dealloc { 24 delete fWind; 25 [super dealloc]; 26 } 27 28 @end 29