a8a42e20f0
git-svn-id: http://skia.googlecode.com/svn/trunk@1622 2bbb7eff-a529-9590-31e7-b0007b416f81
17 lines
401 B
Plaintext
17 lines
401 B
Plaintext
#import "SkMenuController.h"
|
|
|
|
@implementation SkMenuController
|
|
-(IBAction) openFile:(id) sender {
|
|
NSOpenPanel* panel = [NSOpenPanel openPanel];
|
|
NSInteger response = [panel runModal];
|
|
|
|
[panel setFloatingPanel:YES];
|
|
[panel setCanChooseDirectories:NO];
|
|
[panel setCanChooseFiles:YES];
|
|
|
|
if(response == NSOKButton){
|
|
[fWindow loadFile:[panel filename]];
|
|
}
|
|
}
|
|
@end
|