Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

GeeYouEye

macrumors 68000
Original poster
Dec 9, 2001
1,670
10
State of Denial
I'm trying to write a frontend for md5, which is later going to be integrated into another program. I know how to initialize and launch the NSTask, but what I can't seem to find a way to get what would be the output of the task (in this case, the result of the hashing function) into an NSString, which I would then pass back to an NSTextField via -setStringValue: (the -launch method of NSTask is a void). While I could create a temporary file and then make a new NSTask to rm it, that seems like a waste, and I don't know how to get the file contents anyway. Anyone know how to do this?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.