1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gfx/skia/trunk/src/views/mac/SampleAppDelegate.mm Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,16 @@ 1.4 +#import "SampleAppDelegate.h" 1.5 +@implementation SampleAppDelegate 1.6 +@synthesize fWindow, fView, fOptions; 1.7 + 1.8 +-(void) applicationDidFinishLaunching:(NSNotification *)aNotification { 1.9 + //Load specified skia views after launching 1.10 + fView.fOptionsDelegate = fOptions; 1.11 + [fWindow setAcceptsMouseMovedEvents:YES]; 1.12 + [fOptions registerMenus:fView.fWind->getMenus()]; 1.13 +} 1.14 + 1.15 +- (IBAction)toiPadSize:(id)sender { 1.16 + NSRect frame = NSMakeRect(fWindow.frame.origin.x, fWindow.frame.origin.y, 768, 1024); 1.17 + [fWindow setFrame:frame display:YES animate:YES]; 1.18 +} 1.19 +@end