Search
lxdream.org :: lxdream/src/cocoaui/cocoa_ctrl.m :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/cocoaui/cocoa_ctrl.m
changeset 1298:d0eb2307b847
prev1297:7e98a164b2d9
author nkeynes
date Wed Feb 04 08:38:23 2015 +1000 (4 years ago)
permissions -rw-r--r--
last change Fix assorted compile warnings reported by Clang
file annotate diff log raw
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.3 @@ -220,7 +220,7 @@
1.4 if( [super initWithFrame: frameRect title: NS_("Controllers")] == nil ) {
1.5 return nil;
1.6 } else {
1.7 - int i,j;
1.8 + int i;
1.9 int y = [self contentHeight] - TEXT_HEIGHT - TEXT_GAP;
1.10
1.11 memset( radio, 0, sizeof(radio) );
1.12 @@ -320,7 +320,7 @@
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.21 @@ -340,7 +340,7 @@
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.28 file: nil];
1.29 if( result == NSFileHandlingPanelOKButton ) {
.