Sending keycode to stdin
Sending keycode to stdin
- Subject: Sending keycode to stdin
- From: Marc Tecles <email@hidden>
- Date: Sat, 23 May 2009 00:54:55 +0200
Hi,
i'm trying to write a Cocoa application that launch a command line
tool for example top. I've used NSTask with 2 NSPipe to launch the
command line tool and to redirect the stdout and stderr to an
NSTextview in my applycation asynchronously with Notification center.
Now i want to send to the top application the keycode corresponding to
the keyboard Q to terminate the task. I tried to write to the stdin
without success.
Do you have any idea how to send key code to a command line tool
launch with NSTask ?
Regards,
Marc
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden