I'm not positive I understand you, but you want to provide characters to a subprocess? In that case you don't want anything to do with your own process' standard input.
Create an NSPipe and set it as the standard input of the NSTask. After you've launched the task, you should be able use the NSPipe's fileHandleForWriting to send data to the task.