michael@0: #import "SampleAppDelegate.h" michael@0: @implementation SampleAppDelegate michael@0: @synthesize fWindow, fView, fOptions; michael@0: michael@0: -(void) applicationDidFinishLaunching:(NSNotification *)aNotification { michael@0: //Load specified skia views after launching michael@0: fView.fOptionsDelegate = fOptions; michael@0: [fWindow setAcceptsMouseMovedEvents:YES]; michael@0: [fOptions registerMenus:fView.fWind->getMenus()]; michael@0: } michael@0: michael@0: - (IBAction)toiPadSize:(id)sender { michael@0: NSRect frame = NSMakeRect(fWindow.frame.origin.x, fWindow.frame.origin.y, 768, 1024); michael@0: [fWindow setFrame:frame display:YES animate:YES]; michael@0: } michael@0: @end