1#import "HelloWorldDelegate.h" 2 3#include "SkApplication.h" 4 5@implementation HelloWorldDelegate 6@synthesize fWindow, fView, fOptions; 7 8// for iOS 9-(void) applicationDidFinishLaunching:(NSNotification *)aNotification { 10 //Load specified skia views after launching 11 fView.fOptionsDelegate = fOptions; 12 [fWindow setAcceptsMouseMovedEvents:YES]; 13 // [fOptions registerMenus:fView.fWind->getMenus()]; 14} 15 16- (IBAction)toiPadSize:(id)sender { 17 NSRect frame = NSMakeRect(fWindow.frame.origin.x, fWindow.frame.origin.y, 768, 1024); 18 [fWindow setFrame:frame display:YES animate:YES]; 19} 20 21- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender { 22 [fView freeNativeWind]; 23 application_term(); 24 return NSTerminateNow; 25} 26 27@end 28