1.1 --- a/src/cocoaui/cocoa_ctrl.m Sun Jan 18 20:00:38 2015 +1000
1.2 +++ b/src/cocoaui/cocoa_ctrl.m Wed Feb 04 08:38:23 2015 +1000
1.4 if( [super initWithFrame: frameRect title: NS_("Controllers")] == nil ) {
1.9 int y = [self contentHeight] - TEXT_HEIGHT - TEXT_GAP;
1.11 memset( radio, 0, sizeof(radio) );
1.13 NSArray *array = [NSArray arrayWithObjects: @"vmu", nil];
1.14 NSOpenPanel *panel = [NSOpenPanel openPanel];
1.15 VMULoadValidator *valid = [[VMULoadValidator alloc] autorelease];
1.16 - [panel setDelegate: valid];
1.17 + [panel setDelegate: (id)valid];
1.18 int result = [panel runModalForDirectory: [NSString stringWithUTF8String: get_gui_path(CONFIG_VMU_PATH)]
1.19 file: nil types: array];
1.20 if( result == NSOKButton ) {
1.22 [panel setCanCreateDirectories: YES];
1.23 [panel setRequiredFileType: @"vmu"];
1.24 VMUCreateValidator *valid = [[VMUCreateValidator alloc] autorelease];
1.25 - [panel setDelegate: valid];
1.26 + [panel setDelegate: (id)valid];
1.27 int result = [panel runModalForDirectory: [NSString stringWithUTF8String: get_gui_path(CONFIG_VMU_PATH)]
1.29 if( result == NSFileHandlingPanelOKButton ) {