• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Sending keycode to stdin
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Sending keycode to stdin
      • From: Andrew Farmer <email@hidden>
  • Prev by Date: Newbie question on listing out detailed items
  • Next by Date: Re: Newbie question on listing out detailed items
  • Previous by thread: [SOLVED] Re: Newbie question on listing out detailed items
  • Next by thread: Re: Sending keycode to stdin
  • Index(es):
    • Date
    • Thread