75 |
|
const char *value = PrefsFindString(key); |
76 |
|
if (value == NULL) |
77 |
|
return @""; |
78 |
< |
return [NSString stringWithCString: value]; |
78 |
> |
return [NSString stringWithUTF8String: value]; |
79 |
|
} |
80 |
|
|
81 |
|
- (void) setupGUI |
85 |
|
const char *dsk; |
86 |
|
int index = 0; |
87 |
|
while ((dsk = PrefsFindString("disk", index++)) != NULL) |
88 |
< |
[diskArray addObject: [NSString stringWithCString: dsk ]]; |
88 |
> |
[diskArray addObject: [NSString stringWithUTF8String: dsk ]]; |
89 |
|
|
90 |
|
[disks setDataSource: self]; |
91 |
|
[disks reloadData]; |
203 |
|
if (!strncmp(cwd, filename, cwdlen)) { |
204 |
|
if (cwdlen >= 0 && cwd[cwdlen-1] != '/') |
205 |
|
cwdlen++; |
206 |
< |
return [NSString stringWithCString: filename + cwdlen]; |
206 |
> |
return [NSString stringWithUTF8String: filename + cwdlen]; |
207 |
|
} |
208 |
|
return path; |
209 |
|
} |