Hi all,
May I ask for some help with a conceptual understanding of an issue that I have not been able to clearly discern from the documents.
It concerns the role of an NSFileHandle object in relation to pipes, in for example, running a task from within a cocoa ap.
Right now, I understand a pipe ( conceptually) to be mechanism whereby the output of one unix operation/command is directed to the input of another, and vice-versa (understanding that pipes are unidirectional). So, the example that was used to illustrate this, was cat|wc ( for a pipe *from* cat *to* wc).
In the actual construction of an operation to perform this, the role of NSTask makes sense, the role of NSPipe does so too, but I cannot conceptually place the role of NSFileHandle. Could someone give a nice concise concept to this for me and then, what does it **actually** do?
Thanks in advance.
May I ask for some help with a conceptual understanding of an issue that I have not been able to clearly discern from the documents.
It concerns the role of an NSFileHandle object in relation to pipes, in for example, running a task from within a cocoa ap.
Right now, I understand a pipe ( conceptually) to be mechanism whereby the output of one unix operation/command is directed to the input of another, and vice-versa (understanding that pipes are unidirectional). So, the example that was used to illustrate this, was cat|wc ( for a pipe *from* cat *to* wc).
In the actual construction of an operation to perform this, the role of NSTask makes sense, the role of NSPipe does so too, but I cannot conceptually place the role of NSFileHandle. Could someone give a nice concise concept to this for me and then, what does it **actually** do?
Thanks in advance.