Search
lxdream.org :: lxdream/src/cocoaui/cocoa_cfg.m :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/cocoaui/cocoa_cfg.m
changeset 1298:d0eb2307b847
prev1072:d82e04e6d497
author nkeynes
date Wed Feb 04 08:38:23 2015 +1000 (5 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_cfg.m Tue Jul 21 20:33:21 2009 +1000
1.2 +++ b/src/cocoaui/cocoa_cfg.m Wed Feb 04 08:38:23 2015 +1000
1.3 @@ -249,7 +249,7 @@
1.4 - (void)openFileDialog: (id)sender
1.5 {
1.6 int tag = [sender tag];
1.7 - NSString *text = [fields[tag][0] stringValue];
1.8 + /* NSString *text = [fields[tag][0] stringValue]; */
1.9 NSOpenPanel *panel = [NSOpenPanel openPanel];
1.10 int result = [panel runModalForDirectory: nil file: nil types: nil];
1.11 if( result == NSOKButton && [[panel filenames] count] > 0 ) {
1.12 @@ -263,7 +263,7 @@
1.13 - (void)openDirDialog: (id)sender
1.14 {
1.15 int tag = [sender tag];
1.16 - NSString *text = [fields[tag][0] stringValue];
1.17 + /* NSString *text = [fields[tag][0] stringValue]; */
1.18 NSOpenPanel *panel = [NSOpenPanel openPanel];
1.19 [panel setCanChooseDirectories: YES];
1.20 [panel setCanCreateDirectories: YES];
1.21 @@ -313,14 +313,14 @@
1.22 fields[i][0] = [[KeyBindingField alloc] initWithFrame: frame];
1.23 [fields[i][0] setAutoresizingMask: (NSViewMinYMargin|NSViewMaxXMargin)];
1.24 [fields[i][0] setTag: i];
1.25 - [fields[i][0] setDelegate: self];
1.26 + [fields[i][0] setDelegate: (id)self];
1.27 [self addSubview: fields[i][0]];
1.28
1.29 frame = NSMakeRect( x + labelWidth + KEYBINDING_SIZE + (TEXT_GAP*2), y, KEYBINDING_SIZE, TEXT_HEIGHT);
1.30 fields[i][1] = [[KeyBindingField alloc] initWithFrame: frame];
1.31 [fields[i][1] setAutoresizingMask: (NSViewMinYMargin|NSViewMaxXMargin)];
1.32 [fields[i][1] setTag: i];
1.33 - [fields[i][1] setDelegate: self];
1.34 + [fields[i][1] setDelegate: (id)self];
1.35 [self addSubview: fields[i][1]];
1.36
1.37 if( config->params[i].value != NULL ) {
1.38 @@ -341,7 +341,7 @@
1.39 NSTextField *field = [[NSTextField alloc] initWithFrame: frame];
1.40 [field setTag: i];
1.41 [field setStringValue: [NSString stringWithCString: config->params[i].value]];
1.42 - [field setDelegate: self];
1.43 + [field setDelegate: (id)self];
1.44 [field setAutoresizingMask: (NSViewMinYMargin|NSViewWidthSizable)];
1.45
1.46 frame = NSMakeRect( x+ labelWidth + fieldWidth + (TEXT_GAP*2), y, TEXT_HEIGHT, TEXT_HEIGHT );
.