discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnustep] Question ...


From: richard
Subject: Re: [Discuss-gnustep] Question ...
Date: Thu, 14 Sep 2000 21:14:16 +0100

On Thu, 14 Sep 2000 15:39:13 -0400, stefanos@e-scape.net wrote:
> Hello ,
>
> I testing out GNUstep and I have a question concerning
> events generated from another process.
>
> Say I create a pipe and I want to read data from the
> pipe when it is available. How do I set this up so that once
> I invoke the appliaction with [theApp run] the application
> will call a function or method to poll the file descriptor to
> see if there is any data?

You don't need to poll - set up an observer for
NSFileHandleReadCompletionNotification on the handle you are reading from, and
issue a -readInBackgroundAndNotify to the handle.  When data arrives, your
notification handler will be called.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]