another day, another popen(...) and fflush( ) statement... *sigh*
yup, ive figured out the little problem with NSTask and NSPipe.... and the solution is..... get ready..... DONT USE THEM... yup... thats my solution... so now ive got some fancy cocoa code with a chunk of straight C in the middle of it... but it works... and thats all im worried about. Seems the easiest way to start a process and send data to its stdin stream is by using straight C calls... totally weird... maybe theres a way using cocoa/objective C calls with the apple API, but im damned if i could find it. As far as i can see, NSTask is only good for creating processes with command line arguments, and NSPipe is only good for reading from the processes stdout stream.... try using an NSPipe with stdin and tell me how ya go... go on.. i dare ya to... *sigh* maybe apple will make it easier later on or somthing...
even the all knowing google couldnt find me an example of using NSPipe with stdin stream... it seems my world is falling apart... i didnt think id see the day when the all knowing google would be stumped.. sending back information that does contain my search words, but really does not relate... but thats enough of that.. we shall never speak of it again.
Been marking assignments.. essay / short answer style questions, i thought it would be tough, but it appears that the questions must of come straight out of the book as most people have similar answers....
I think ill buy myself a webcam tomorrow... would be handy to play with and it actually relates to my phd study.. so ill write the bugger off in tax next year :)
Im still waiting on my copy of jaguar - os x.2... when will it come? Apple.. can you hear me? *sigh*
*grumble grumble* - im huuunnngggrrryyyyy!!!!.. hrmmmm
ok, time to go and eat.... again....
yup, ive figured out the little problem with NSTask and NSPipe.... and the solution is..... get ready..... DONT USE THEM... yup... thats my solution... so now ive got some fancy cocoa code with a chunk of straight C in the middle of it... but it works... and thats all im worried about. Seems the easiest way to start a process and send data to its stdin stream is by using straight C calls... totally weird... maybe theres a way using cocoa/objective C calls with the apple API, but im damned if i could find it. As far as i can see, NSTask is only good for creating processes with command line arguments, and NSPipe is only good for reading from the processes stdout stream.... try using an NSPipe with stdin and tell me how ya go... go on.. i dare ya to... *sigh* maybe apple will make it easier later on or somthing...
even the all knowing google couldnt find me an example of using NSPipe with stdin stream... it seems my world is falling apart... i didnt think id see the day when the all knowing google would be stumped.. sending back information that does contain my search words, but really does not relate... but thats enough of that.. we shall never speak of it again.
Been marking assignments.. essay / short answer style questions, i thought it would be tough, but it appears that the questions must of come straight out of the book as most people have similar answers....
I think ill buy myself a webcam tomorrow... would be handy to play with and it actually relates to my phd study.. so ill write the bugger off in tax next year :)
Im still waiting on my copy of jaguar - os x.2... when will it come? Apple.. can you hear me? *sigh*
*grumble grumble* - im huuunnngggrrryyyyy!!!!.. hrmmmm
ok, time to go and eat.... again....
