diff -r 000000000000 -r 6474c204b198 gfx/skia/trunk/src/views/mac/SampleAppDelegate.mm --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gfx/skia/trunk/src/views/mac/SampleAppDelegate.mm Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,16 @@ +#import "SampleAppDelegate.h" +@implementation SampleAppDelegate +@synthesize fWindow, fView, fOptions; + +-(void) applicationDidFinishLaunching:(NSNotification *)aNotification { + //Load specified skia views after launching + fView.fOptionsDelegate = fOptions; + [fWindow setAcceptsMouseMovedEvents:YES]; + [fOptions registerMenus:fView.fWind->getMenus()]; +} + +- (IBAction)toiPadSize:(id)sender { + NSRect frame = NSMakeRect(fWindow.frame.origin.x, fWindow.frame.origin.y, 768, 1024); + [fWindow setFrame:frame display:YES animate:YES]; +} +@end