[aTask setLaunchPath:@MYLOCALOBJECTIVECROUTINE]
[aTask setLaunchPath:@MYLOCALOBJECTIVECROUTINE]
- Subject: [aTask setLaunchPath:@MYLOCALOBJECTIVECROUTINE]
- From: "devdrvr.net Multi-Platform SW" <email@hidden>
- Date: Sat, 12 Oct 2002 18:28:38 -0700
Want to launch a local routine in my code with an
NSTask. Perhaps this is a complete misuse of the
class. Has anyone changed setLaunchPath to fire
up a local method or external C++ method call?
aTask = [[NSTask alloc] init];
// Instead of:
// [aTask setLaunchPath:@"/bin/ls"];
// Want to:
[aTask setLaunchPath:@MYLOCALOBJECTIVECROUTINE]
[aTask setArguments:nil];
...
Reason I'm doing is to send standard output to an NSPipe
and then put that pipe to a text field in my Cocoa app's
window. Maybe there is another way, NSConnection or
otherwise. Open to suggestions.
--Perry
========
01 (530) 400-5692 [Davis, CA USA]
mailto:email@hidden
http://www.devdrvr.net/PerryCard.html
ftp://www.devdrvr.net/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.