• 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
Re: Problem with NSFileHandle?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with NSFileHandle?


  • Subject: Re: Problem with NSFileHandle?
  • From: "Louis C. Sacha" <email@hidden>
  • Date: Thu, 24 Jun 2004 14:59:09 -0700

Hello...

The documentation for NSFileHandleReadCompletionNotification notification seems to indicate that the keys are the strings @"NSFileHandleNotificationDataItem" and @"NSFileHandleError" and not constants by those names.

Hope that helps,

Louis


I'm having a rather odd problem with NSFileHandle. I'm using NSTask to run a Unix process and I'm piping stdout and stderr to a pipe asynchronously in the background so that a NSFileHandleReadCompletionNotification gets posted.

Recall that -readInBackgroundAndNotify triggers a NSFileHandleReadCompletionNotification notification. This notification, according to the documentation, contains a userInfo dictionary with keys NSFileHandleNotificationDataItem and NSFileHandleError. The problem I'm having is that the first key seems to exist, whereas the second doesn't. The compiler spits back a message to that effect.

Has anybody experienced the same problem?

Glenn Zelniker
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Problem with NSFileHandle?
      • From: Glenn Zelniker <email@hidden>
References: 
 >Problem with NSFileHandle? (From: Glenn Zelniker <email@hidden>)

  • Prev by Date: Re: memory leaks
  • Next by Date: NSURLConnection threads creation
  • Previous by thread: Problem with NSFileHandle?
  • Next by thread: Re: Problem with NSFileHandle?
  • Index(es):
    • Date
    • Thread