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 @@
[o_save_panel setTitle: _NS("Save File")];
[o_save_panel setPrompt: _NS("Save")];
[o_save_panel setNameFieldStringValue: o_name];
if( [o_save_panel runModalForDirectory: nil
file: o_name] == NSOKButton )
if( [o_save_panel runModal] == NSFileHandlingPanelOKButton )
{
NSString *o_filename = [[o_save_panel URL] path];
[o_file_field setStringValue: o_filename];
......@@ -604,9 +604,8 @@
[o_transcode_string appendString:@"}:"];
}
else
{
o_transcode_string = [NSString stringWithString:@""];
}
[o_transcode_string setString: @""];
[self setTranscode: o_transcode_string];
[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