Commit b9ca1827 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx/output: replaced deprecated API call and fixed long standing warning

parent 012fa5d2
...@@ -517,9 +517,9 @@ ...@@ -517,9 +517,9 @@
[o_save_panel setTitle: _NS("Save File")]; [o_save_panel setTitle: _NS("Save File")];
[o_save_panel setPrompt: _NS("Save")]; [o_save_panel setPrompt: _NS("Save")];
[o_save_panel setNameFieldStringValue: o_name];
if( [o_save_panel runModalForDirectory: nil if( [o_save_panel runModal] == NSFileHandlingPanelOKButton )
file: o_name] == NSOKButton )
{ {
NSString *o_filename = [[o_save_panel URL] path]; NSString *o_filename = [[o_save_panel URL] path];
[o_file_field setStringValue: o_filename]; [o_file_field setStringValue: o_filename];
...@@ -604,9 +604,8 @@ ...@@ -604,9 +604,8 @@
[o_transcode_string appendString:@"}:"]; [o_transcode_string appendString:@"}:"];
} }
else else
{ [o_transcode_string setString: @""];
o_transcode_string = [NSString stringWithString:@""];
}
[self setTranscode: o_transcode_string]; [self setTranscode: o_transcode_string];
[self outputInfoChanged:nil]; [self outputInfoChanged:nil];
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment