o_dic = [NSMutableDictionary dictionaryWithObject: [o_mrl stringValue] forKey: @"ITEM_URL"];
if( [o_file_sub_ckbox state] == NSOnState )
{
- [o_options addObject: [NSString stringWithFormat: @"sub-file=%s", [[o_file_sub_path stringValue] UTF8String]]];
+ [o_options addObject: [NSString stringWithFormat: @"sub-file=%s", [[o_file_sub_path stringValue] fileSystemRepresentation]]];
if( [o_file_sub_override state] == NSOnState )
{
[o_options addObject: [NSString stringWithFormat: @"sub-delay=%i", (int)( [o_file_sub_delay intValue] * 10 )]];
break;
case CONFIG_ITEM_STRING:
+ {
+ char *psz_value;
+ NSString *o_value = [o_vlc_config stringValue];
+ psz_value = (char *)[o_value UTF8String];
+
+ config_PutPsz( p_intf, psz_name, psz_value );
+ }
+ break;
+
case CONFIG_ITEM_FILE:
case CONFIG_ITEM_DIRECTORY:
{
char *psz_value;
NSString *o_value = [o_vlc_config stringValue];
- psz_value = (char *)[o_value UTF8String];
+ psz_value = (char *)[o_value fileSystemRepresentation];
config_PutPsz( p_intf, psz_name, psz_value );
}
- (char *)stringValue
{
- return strdup( [NSApp delocalizeString: [o_textfield stringValue]] );
+ return strdup( [[o_textfield stringValue] fileSystemRepresentation] );
}
@end