2 // ElisMovieSizeWindowController.m
5 // Created by 柳 on 09/09/26.
6 // Copyright 2009 __MyCompanyName__. All rights reserved.
9 #import "ElisMovieSizeWindowController.h"
12 @implementation ElisMovieSizeWindowController
16 [NSBundle loadNibNamed:@"movieSizeWindow" owner:self];
22 [_widthField setIntValue:(int)ProjectMovieSize.size.width];
23 [_heightField setIntValue:(int)ProjectMovieSize.size.height];
25 [NSApp beginSheet:_window modalForWindow:_mainWindow
26 modalDelegate:self didEndSelector:nil contextInfo:nil];
29 - (IBAction)pushedOK:(id)sender
32 x = [_widthField intValue];
33 y = [_heightField intValue];
36 ProjectMovieSize.size.width = x;
37 ProjectMovieSize.size.height = y;
41 [NSApp endSheet:_window returnCode:NSCancelButton];
46 - (IBAction)pushedCancel:(id)sender
49 [NSApp endSheet:_window];
52 - (void)setMainWindow:(NSWindow *)w
57 - (void)setMainView:(id)v