4 |
|
* |
5 |
|
* $Id$ |
6 |
|
* |
7 |
< |
* Basilisk II (C) 1997-2001 Christian Bauer |
7 |
> |
* Basilisk II (C) 1997-2005 Christian Bauer |
8 |
|
* |
9 |
|
* This program is free software; you can redistribute it and/or modify |
10 |
|
* it under the terms of the GNU General Public License as published by |
105 |
|
|
106 |
|
@end |
107 |
|
|
108 |
– |
@implementation PrefsEditor |
109 |
– |
|
108 |
|
#import <AppKit/NSImage.h> // For [NSBundle pathForImageResource:] proto |
109 |
|
|
110 |
+ |
#include <string> |
111 |
+ |
using std::string; |
112 |
+ |
extern string UserPrefsPath; // from prefs_unix.cpp |
113 |
+ |
|
114 |
|
#import "sysdeps.h" // Types used in Basilisk C++ code |
115 |
|
#import "video_macosx.h" // some items that we edit here |
116 |
|
#import "misc_macosx.h" // WarningSheet() prototype |
117 |
+ |
#import "main_macosx.h" // ChoiceAlert() prototype |
118 |
+ |
|
119 |
|
|
120 |
|
#import <prefs.h> |
121 |
|
|
122 |
|
#define DEBUG 0 |
123 |
|
#import <debug.h> |
124 |
|
|
125 |
+ |
@implementation PrefsEditor |
126 |
+ |
|
127 |
|
- (PrefsEditor *) init |
128 |
|
{ |
129 |
|
self = [super init]; |
131 |
|
edited = NO; |
132 |
|
|
133 |
|
devs = @"/dev"; |
134 |
< |
home = NSHomeDirectory(); |
134 |
> |
home = [NSHomeDirectory() retain]; |
135 |
|
volsDS = [TableDS new]; |
136 |
|
SCSIds = [TableDS new]; |
137 |
|
|
140 |
|
NSLog (@"%s - Can't create NSImageCell?", __PRETTY_FUNCTION__); |
141 |
|
|
142 |
|
blank = [NSImage new]; |
143 |
< |
locked = [NSImage alloc]; |
144 |
< |
if ( [locked initWithContentsOfFile: |
145 |
< |
[[NSBundle mainBundle] |
140 |
< |
pathForImageResource: @"nowrite.icns"]] == nil ) |
143 |
> |
locked = [[NSImage alloc] initWithContentsOfFile: |
144 |
> |
[[NSBundle mainBundle] pathForImageResource: @"nowrite.icns"]]; |
145 |
> |
if (locked == nil ) |
146 |
|
NSLog(@"%s - Couldn't open write protection image", __PRETTY_FUNCTION__); |
147 |
|
|
148 |
|
return self; |
150 |
|
|
151 |
|
- (void) dealloc |
152 |
|
{ |
153 |
< |
[volsDS dealloc]; |
154 |
< |
[SCSIds dealloc]; |
155 |
< |
[lockCell dealloc]; |
156 |
< |
[locked dealloc]; |
157 |
< |
[blank dealloc]; |
153 |
> |
[volsDS release]; |
154 |
> |
[SCSIds release]; |
155 |
> |
[lockCell release]; |
156 |
> |
[blank release]; |
157 |
> |
[locked release]; |
158 |
|
[super dealloc]; |
159 |
|
} |
160 |
|
|
197 |
|
{ |
198 |
|
[volsDS addObject: (NSObject *) locked |
199 |
|
withPath: [oP filename] ]; |
200 |
< |
PrefsAddString("disk", [[oP filename] cString]); |
200 |
> |
PrefsAddString("disk", [[oP filename] UTF8String]); |
201 |
|
[diskImages reloadData]; |
202 |
|
edited = YES; |
203 |
|
} |
218 |
|
types:nil] == NSOKButton ) |
219 |
|
{ |
220 |
|
[extFS setStringValue: [oP directory] ]; |
221 |
< |
PrefsReplaceString("extfs", [[oP directory] cString]); |
221 |
> |
PrefsReplaceString("extfs", [[oP directory] UTF8String]); |
222 |
|
edited = YES; |
223 |
|
} |
224 |
|
} |
225 |
|
|
226 |
+ |
- (IBAction) BrowsePrefs: (id)sender |
227 |
+ |
{ |
228 |
+ |
NSOpenPanel *oP = [NSOpenPanel openPanel]; |
229 |
+ |
|
230 |
+ |
[oP setCanChooseFiles: YES]; |
231 |
+ |
[oP setTitle: @"Select a Preferences file"]; |
232 |
+ |
D(NSLog(@"%s - home = %@", __PRETTY_FUNCTION__, home)); |
233 |
+ |
if ( [oP runModalForDirectory: ([prefsFile stringValue] ? [prefsFile stringValue] : home) |
234 |
+ |
file:nil |
235 |
+ |
types:nil] == NSOKButton ) |
236 |
+ |
{ |
237 |
+ |
[prefsFile setStringValue: [oP filename] ]; |
238 |
+ |
UserPrefsPath = [[oP filename] UTF8String]; |
239 |
+ |
} |
240 |
+ |
} |
241 |
+ |
|
242 |
|
- (IBAction) BrowseROM: (id)sender |
243 |
|
{ |
244 |
|
NSOpenPanel *oP = [NSOpenPanel openPanel]; |
251 |
|
types:nil] == NSOKButton ) |
252 |
|
{ |
253 |
|
[ROMfile setStringValue: [oP filename] ]; |
254 |
< |
PrefsReplaceString("rom", [[oP filename] cString]); |
254 |
> |
PrefsReplaceString("rom", [[oP filename] UTF8String]); |
255 |
|
edited = YES; |
256 |
|
} |
257 |
|
} |
260 |
|
|
261 |
|
- (IBAction) ChangeBootFrom: (NSMatrix *)sender |
262 |
|
{ |
263 |
< |
if ( [sender selectedCell] == bootFromCD ) |
263 |
> |
if ( [sender selectedCell] == (id)bootFromCD ) |
264 |
|
PrefsReplaceInt32("bootdriver", CDROMRefNum); |
265 |
|
else |
266 |
|
PrefsReplaceInt32("bootdriver", 0); |
296 |
|
edited = YES; |
297 |
|
} |
298 |
|
|
299 |
+ |
- (IBAction) ChangeKeyboard: (NSPopUpButton *)sender |
300 |
+ |
{ |
301 |
+ |
// Deselest current item |
302 |
+ |
int current = [keyboard indexOfItemWithTag: PrefsFindInt32("keyboardtype")]; |
303 |
+ |
if ( current != -1 ) |
304 |
+ |
[[keyboard itemAtIndex: current] setState: FALSE]; |
305 |
+ |
|
306 |
+ |
PrefsReplaceInt32("keyboardtype", [[sender selectedItem] tag]); |
307 |
+ |
edited = YES; |
308 |
+ |
} |
309 |
+ |
|
310 |
|
- (IBAction) ChangeModel: (NSMatrix *)sender |
311 |
|
{ |
312 |
|
PrefsReplaceInt32("modelid", [[sender selectedCell] tag]); |
313 |
|
edited = YES; |
314 |
|
} |
315 |
|
|
316 |
< |
// This is called when any of the screen/openGL/window, |
316 |
> |
|
317 |
> |
// If we are not using the CGIMAGEREF drawing strategy, |
318 |
> |
// then source bitmaps must be 32bits deep. |
319 |
> |
|
320 |
> |
- (short) testWinDepth: (int) newbpp |
321 |
> |
{ |
322 |
> |
#ifdef CGIMAGEREF |
323 |
> |
return newbpp; |
324 |
> |
#else |
325 |
> |
if ( newbpp != 32 ) |
326 |
> |
WarningSheet(@"Sorry - In windowed mode, depth must be 32", panel); |
327 |
> |
return 32 |
328 |
> |
#endif |
329 |
> |
} |
330 |
> |
|
331 |
> |
// This is called when the screen/window, |
332 |
|
// width, height or depth is clicked. |
333 |
|
// |
334 |
|
// Note that sender may not actually be an NSMatrix. |
343 |
|
short newtype; |
344 |
|
char str[20]; |
345 |
|
|
346 |
< |
if ( cell == openGL ) |
300 |
< |
newtype = DISPLAY_OPENGL; |
301 |
< |
else if ( cell == screen ) |
346 |
> |
if ( cell == screen ) |
347 |
|
newtype = DISPLAY_SCREEN; |
348 |
|
else if ( cell == window ) |
349 |
|
newtype = DISPLAY_WINDOW; |
359 |
|
} |
360 |
|
|
361 |
|
// If we are changing type, supply some sensible defaults |
362 |
+ |
|
363 |
+ |
short screenx = CGDisplayPixelsWide(kCGDirectMainDisplay), |
364 |
+ |
screeny = CGDisplayPixelsHigh(kCGDirectMainDisplay), |
365 |
+ |
screenb = CGDisplayBitsPerPixel(kCGDirectMainDisplay); |
366 |
+ |
|
367 |
|
if ( newtype != display_type ) |
368 |
|
{ |
369 |
|
D(NSLog(@"Changing display type in ChangeScreen")); |
320 |
– |
if ( newtype == DISPLAY_SCREEN ) // If changing to full screen |
321 |
– |
{ |
322 |
– |
// supply main screen dimensions as a default |
323 |
– |
newx = CGDisplayPixelsWide (kCGDirectMainDisplay); |
324 |
– |
newy = CGDisplayPixelsHigh (kCGDirectMainDisplay); |
325 |
– |
newbpp = CGDisplayBitsPerPixel(kCGDirectMainDisplay); |
326 |
– |
} |
370 |
|
|
371 |
< |
if ( display_type == DISPLAY_SCREEN ) // If changing from full screen |
371 |
> |
// If changing to full screen, supply main screen dimensions as a default |
372 |
> |
if ( newtype == DISPLAY_SCREEN ) |
373 |
> |
newx = screenx, newy = screeny, newbpp = screenb; |
374 |
> |
|
375 |
> |
// If changing from full screen, use minimum screen resolutions |
376 |
> |
if ( display_type == DISPLAY_SCREEN ) |
377 |
> |
{ |
378 |
|
newx = MIN_WIDTH, newy = MIN_HEIGHT; |
379 |
< |
|
380 |
< |
[width setIntValue: newx]; |
332 |
< |
[height setIntValue: newy]; |
333 |
< |
[depth setIntValue: newbpp]; |
379 |
> |
newbpp = [self testWinDepth: newbpp]; |
380 |
> |
} |
381 |
|
} |
382 |
|
else |
383 |
|
{ |
384 |
+ |
newbpp = [self testWinDepth: newbpp]; |
385 |
+ |
|
386 |
|
// Check size is within ranges of MIN_WIDTH ... MAX_WIDTH |
387 |
|
// and MIN_HEIGHT ... MAX_HEIGHT |
388 |
|
// ??? |
389 |
|
} |
390 |
|
|
391 |
+ |
[width setIntValue: newx]; |
392 |
+ |
[height setIntValue: newy]; |
393 |
+ |
[depth setIntValue: newbpp]; |
394 |
+ |
|
395 |
|
|
396 |
|
// Store new prefs |
397 |
|
*str = '\0'; |
403 |
|
else |
404 |
|
sprintf(str, "win/%hd/%hd", newx, newy); |
405 |
|
break; |
353 |
– |
case DISPLAY_OPENGL: |
354 |
– |
if ( newbpp ) |
355 |
– |
sprintf(str, "opengl/%hd/%hd/%hd", newx, newy, newbpp); |
356 |
– |
else |
357 |
– |
sprintf(str, "opengl/%hd/%hd", newx, newy); |
358 |
– |
break; |
406 |
|
case DISPLAY_SCREEN: |
407 |
|
if ( newbpp ) |
408 |
|
sprintf(str, "full/%hd/%hd/%hd", newx, newy, newbpp); |
435 |
|
if ( [sP runModalForDirectory:NSHomeDirectory() file:@"basilisk-II.vol"] == NSOKButton ) |
436 |
|
{ |
437 |
|
char cmd[1024]; |
438 |
< |
const char *filename = [[sP filename] cString]; |
438 |
> |
const char *filename = [[sP filename] UTF8String]; |
439 |
|
int retVal, |
440 |
|
size = [newVolumeSize intValue]; |
441 |
|
|
442 |
|
sprintf(cmd, "dd if=/dev/zero \"of=%s\" bs=1024k count=%d", filename, size); |
443 |
+ |
|
444 |
|
retVal = system(cmd); |
445 |
|
if (retVal != 0) |
446 |
|
{ |
473 |
|
|
474 |
|
- (IBAction) DeleteVolume: (id)sender |
475 |
|
{ |
428 |
– |
// const char *path = [self RemoveVolumeEntry]; |
429 |
– |
// if ( unlink(path) == -1 ) |
476 |
|
NSString *Path = [self RemoveVolumeEntry]; |
477 |
|
|
478 |
+ |
if ( ! Path ) |
479 |
+ |
return; |
480 |
+ |
|
481 |
|
if ( ! [[NSFileManager defaultManager] removeFileAtPath: Path |
482 |
|
handler: self] ) |
483 |
|
{ |
484 |
|
WarningSheet(@"Unable to delete volume", panel); |
485 |
< |
// NSLog(@"%s unlink(%s) failed - %s", __PRETTY_FUNCTION__, path, strerror(errno)); |
485 |
> |
NSLog(@"%s unlink(%s) failed - %s", __PRETTY_FUNCTION__, |
486 |
> |
[Path cString], strerror(errno)); |
487 |
|
} |
488 |
|
} |
489 |
|
|
518 |
|
{ |
519 |
|
NSString *path = [etherNet stringValue]; |
520 |
|
|
521 |
< |
PrefsReplaceString("ether", [path cString]); |
521 |
> |
PrefsReplaceString("ether", [path UTF8String]); |
522 |
|
edited = YES; |
523 |
|
} |
524 |
|
|
526 |
|
{ |
527 |
|
NSString *path = [extFS stringValue]; |
528 |
|
|
529 |
< |
PrefsReplaceString("extfs", [path cString]); |
529 |
> |
PrefsReplaceString("extfs", [path UTF8String]); |
530 |
|
edited = YES; |
531 |
|
} |
532 |
|
|
543 |
|
{ |
544 |
|
NSString *path = [modem stringValue]; |
545 |
|
|
546 |
< |
PrefsReplaceString("seriala", [path cString]); |
546 |
> |
PrefsReplaceString("seriala", [path UTF8String]); |
547 |
|
edited = YES; |
548 |
|
} |
549 |
|
|
562 |
|
{ |
563 |
|
NSString *path = [printer stringValue]; |
564 |
|
|
565 |
< |
PrefsReplaceString("serialb", [path cString]); |
565 |
> |
PrefsReplaceString("serialb", [path UTF8String]); |
566 |
|
edited = YES; |
567 |
|
} |
568 |
|
|
570 |
|
{ |
571 |
|
NSString *path = [ROMfile stringValue]; |
572 |
|
|
573 |
< |
PrefsReplaceString("rom", [path cString]); |
573 |
> |
PrefsReplaceString("rom", [path UTF8String]); |
574 |
|
} |
575 |
|
|
576 |
|
- (IBAction) RemoveSCSI: (id)sender |
583 |
|
NSLog (@"%s - [SCSIds deleteRow: %d] failed", __PRETTY_FUNCTION__, row); |
584 |
|
[SCSIdisks reloadData]; |
585 |
|
sprintf(pref, "scsi%d", SCSIid); |
586 |
< |
PrefsRemoveItem(pref,0); |
586 |
> |
//PrefsRemoveItem(pref,0); |
587 |
> |
PrefsRemoveItem(pref, 1); |
588 |
|
} |
589 |
|
|
539 |
– |
//- (const char *) RemoveVolumeEntry |
590 |
|
- (NSString *) RemoveVolumeEntry |
591 |
|
{ |
592 |
|
int row = [diskImages selectedRow]; |
594 |
|
if ( row != -1 ) |
595 |
|
{ |
596 |
|
NSString *Path = [volsDS pathAtRow: row]; |
597 |
< |
const char *path = [Path cString], |
597 |
> |
const char *path = [Path UTF8String], |
598 |
|
*str; |
599 |
|
int tmp = 0; |
600 |
|
|
601 |
+ |
NSString *prompt = [NSString stringWithFormat: @"%s\n%s", |
602 |
+ |
"Are you sure you want to delete the file", |
603 |
+ |
path]; |
604 |
+ |
|
605 |
+ |
if ( ! ChoiceAlert([prompt cString], "Delete", "Cancel") ) |
606 |
+ |
return NULL; |
607 |
+ |
|
608 |
|
while ( (str = PrefsFindString("disk", tmp) ) != NULL ) |
609 |
|
{ |
610 |
|
if ( strcmp(str, path) == 0 ) |
643 |
|
[self RemoveVolumeEntry]; |
644 |
|
} |
645 |
|
|
646 |
< |
- (IBAction) ResetPrefs: (id)sender |
646 |
> |
- (void) loadPrefs: (int) argc |
647 |
> |
args: (char **) argv |
648 |
|
{ |
591 |
– |
int argc = 0; |
592 |
– |
char **argv = NULL; |
593 |
– |
|
649 |
|
[panel close]; // Temporarily hide preferences panel |
650 |
|
|
651 |
|
PrefsExit(); // Purge all the old pref values |
661 |
|
edited = NO; |
662 |
|
} |
663 |
|
|
664 |
+ |
- (IBAction) LoadPrefs: (id)sender |
665 |
+ |
{ |
666 |
+ |
int argc = 2; |
667 |
+ |
char *argv[2]; |
668 |
+ |
|
669 |
+ |
argv[0] = "--prefs", |
670 |
+ |
argv[1] = (char *) [[prefsFile stringValue] UTF8String]; |
671 |
+ |
|
672 |
+ |
[self loadPrefs: argc |
673 |
+ |
args: argv]; |
674 |
+ |
} |
675 |
+ |
|
676 |
+ |
- (IBAction) ResetPrefs: (id)sender |
677 |
+ |
{ |
678 |
+ |
[self loadPrefs: 0 |
679 |
+ |
args: NULL]; |
680 |
+ |
} |
681 |
+ |
|
682 |
|
- (void) setStringOf: (NSTextField *) field |
683 |
< |
fromPref: (const char *) prefName |
683 |
> |
fromPref: (const char *) prefName |
684 |
|
{ |
685 |
|
const char *value = PrefsFindString(prefName, 0); |
686 |
|
|
687 |
|
if ( value ) |
688 |
< |
[field setStringValue: [NSString stringWithCString: value] ]; |
688 |
> |
[field setStringValue: [NSString stringWithUTF8String: value] ]; |
689 |
|
} |
690 |
|
|
691 |
|
- (IBAction) SavePrefs: (id)sender |
698 |
|
{ |
699 |
|
NSTableColumn *locks; |
700 |
|
const char *str; |
701 |
< |
int cpu, tmp; |
701 |
> |
int cpu, tmp, val; |
702 |
|
|
703 |
|
|
704 |
|
// Set simple single field items |
705 |
|
|
706 |
< |
tmp = PrefsFindInt32("frameskip"); |
707 |
< |
[delay setIntValue: tmp]; |
708 |
< |
if ( tmp ) |
709 |
< |
[frequency setFloatValue: 60.0 / tmp]; |
706 |
> |
val = PrefsFindInt32("frameskip"); |
707 |
> |
[delay setIntValue: val]; |
708 |
> |
if ( val ) |
709 |
> |
[frequency setFloatValue: 60.0 / val]; |
710 |
|
else |
711 |
|
[frequency setFloatValue: 60.0]; |
712 |
|
|
713 |
< |
tmp = PrefsFindInt32("ramsize"); |
714 |
< |
[bytes setIntValue: tmp]; |
715 |
< |
[MB setFloatValue: tmp / (1024.0 * 1024.0)]; |
713 |
> |
val = PrefsFindInt32("ramsize"); |
714 |
> |
[bytes setIntValue: val]; |
715 |
> |
[MB setFloatValue: val / (1024.0 * 1024.0)]; |
716 |
|
|
717 |
|
[disableCD setState: PrefsFindBool("nocdrom")]; |
718 |
|
[disableSound setState: PrefsFindBool("nosound")]; |
722 |
|
[self setStringOf: extFS fromPref: "extfs" ]; |
723 |
|
[self setStringOf: modem fromPref: "seriala"]; |
724 |
|
[self setStringOf: printer fromPref: "serialb"]; |
725 |
< |
[self setStringOf: ROMfile fromPref: "rom" ]; |
725 |
> |
[self setStringOf: ROMfile fromPref: "rom"]; |
726 |
> |
|
727 |
> |
[prefsFile setStringValue: [NSString stringWithUTF8String: UserPrefsPath.c_str()] ]; |
728 |
|
|
729 |
|
|
730 |
|
parse_screen_prefs(PrefsFindString("screen")); |
733 |
|
[height setIntValue: init_height]; |
734 |
|
[depth setIntValue: init_depth]; |
735 |
|
|
736 |
< |
[window setState: NO]; |
736 |
> |
[screen setState: NO]; |
737 |
|
switch ( display_type ) |
738 |
|
{ |
739 |
|
case DISPLAY_WINDOW: [window setState: YES]; break; |
665 |
– |
case DISPLAY_OPENGL: [openGL setState: YES]; break; |
740 |
|
case DISPLAY_SCREEN: [screen setState: YES]; break; |
741 |
|
} |
742 |
|
|
744 |
|
|
745 |
|
// Radio button groups: |
746 |
|
|
747 |
< |
tmp = PrefsFindInt32("bootdriver"); |
748 |
< |
[bootFromAny setState: tmp != CDROMRefNum]; |
749 |
< |
[bootFromCD setState: tmp == CDROMRefNum]; |
747 |
> |
val = PrefsFindInt32("bootdriver"); |
748 |
> |
[bootFromAny setState: val != CDROMRefNum]; |
749 |
> |
[bootFromCD setState: val == CDROMRefNum]; |
750 |
|
|
751 |
|
cpu = PrefsFindInt32("cpu"); |
752 |
< |
tmp = PrefsFindInt32("modelid"); |
752 |
> |
val = PrefsFindInt32("modelid"); |
753 |
|
|
754 |
|
#if REAL_ADDRESSING || DIRECT_ADDRESSING |
755 |
|
puts("Current memory model does not support 24bit addressing"); |
756 |
< |
if ( tmp == [classic tag] ) |
756 |
> |
if ( val == [classic tag] ) |
757 |
|
{ |
758 |
|
// Window already created by NIB file, just display |
759 |
|
[panel makeKeyAndOrderFront:self]; |
761 |
|
@"Disabling Mac Classic emulation", nil, panel); |
762 |
|
cpu = [CPU68030 tag]; |
763 |
|
PrefsReplaceInt32("cpu", cpu); |
764 |
< |
tmp = [IIci tag]; |
765 |
< |
PrefsReplaceInt32("modelid", tmp); |
764 |
> |
val = [IIci tag]; |
765 |
> |
PrefsReplaceInt32("modelid", val); |
766 |
|
} |
767 |
|
|
768 |
|
puts("Disabling 68000 & Mac Classic buttons"); |
775 |
|
[CPU68030 setState: [CPU68030 tag] == cpu]; |
776 |
|
[CPU68040 setState: [CPU68040 tag] == cpu]; |
777 |
|
|
778 |
< |
[classic setState: [classic tag] == tmp]; |
779 |
< |
[IIci setState: [IIci tag] == tmp]; |
780 |
< |
[quadra900 setState: [quadra900 tag] == tmp]; |
778 |
> |
[classic setState: [classic tag] == val]; |
779 |
> |
[IIci setState: [IIci tag] == val]; |
780 |
> |
[quadra900 setState: [quadra900 tag] == val]; |
781 |
|
|
782 |
|
|
783 |
|
// Lists of thingies: |
784 |
|
|
785 |
+ |
val = PrefsFindInt32("keyboardtype"); |
786 |
+ |
tmp = [keyboard indexOfItemWithTag: val]; |
787 |
+ |
if ( tmp != -1 ) |
788 |
+ |
[keyboard selectItemAtIndex: tmp]; |
789 |
+ |
for ( tmp = 0; tmp < [keyboard numberOfItems]; ++tmp ) |
790 |
+ |
{ |
791 |
+ |
NSMenuItem *type = [keyboard itemAtIndex: tmp]; |
792 |
+ |
[type setState: [type tag] == val]; |
793 |
+ |
} |
794 |
+ |
|
795 |
+ |
|
796 |
|
for ( tmp = 0; tmp < 7; ++tmp) |
797 |
|
{ |
798 |
|
char pref[6]; |
817 |
|
{ |
818 |
|
if ( *str == '*' ) |
819 |
|
[volsDS addObject: (NSObject *) locked |
820 |
< |
withPath: [NSString stringWithCString: str+1]]; |
820 |
> |
withPath: [NSString stringWithUTF8String: str+1]]; |
821 |
|
else |
822 |
|
[volsDS addObject: (NSObject *) blank |
823 |
< |
withPath: [NSString stringWithCString: str]]; |
823 |
> |
withPath: [NSString stringWithUTF8String: str]]; |
824 |
|
} |
825 |
|
|
826 |
|
[diskImages setDataSource: volsDS]; |