- Joined
- Mar 3, 2010
- Messages
- 72
- Motherboard
- GA-P55M-UD2
- CPU
- Intl Core i5
- Graphics
- EVGA GTX 750TI 2GB FTW
- Mac
- Classic Mac
- Mobile Phone
Hey guys,
I'm having a little problem here, i'm new to objective-c and crap that language is overwhelming.
Anyways, heres what's going on, hopefully someone can light the tunnel for me here.
In termnial i execute this command:
It create's the image just fine. I'm working on a little terminal program, to learn basically and i never though string manipulation could be this damn complicated.
Here's what i found after doing a bit of research, in order to execute shell commands you have to invoke NSTask....
I've tried the "arguments" portion in SOO many different ways.. I continue to get this error after execution of program:
Any help will be appreciated!
I'm having a little problem here, i'm new to objective-c and crap that language is overwhelming.
Anyways, heres what's going on, hopefully someone can light the tunnel for me here.
In termnial i execute this command:
Code:
makehybrid -o ImageTest.iso /Users/Intrus/Desktop/newiso/ -iso -hfs -joliet -eltorito-boot newiso/cdboot -no-emul-boot -hfs-volume-name "TestDescription" -joliet-volume-name "TestDescription"
It create's the image just fine. I'm working on a little terminal program, to learn basically and i never though string manipulation could be this damn complicated.
Here's what i found after doing a bit of research, in order to execute shell commands you have to invoke NSTask....
Code:
NSTask *task;
task = [[NSTask alloc] init];
[task setLaunchPath: @"/usr/bin/hdiutil"];
NSArray *arguments;
arguments = [NSArray arrayWithObjects: @" makehybrid -o ",bootDiskName, holdFolderPath, @"/ -iso -hfs -joliet -eltorito-boot newiso/cdboot -no-emul-boot -hfs-volume-name ", @"\"",bootDescription,@"\"", @" -joliet-volume-name ", @"\"",bootDescription, @"\"", nil];
[task setArguments: arguments];
I've tried the "arguments" portion in SOO many different ways.. I continue to get this error after execution of program:
Code:
Segmentation fault
Any help will be appreciated!