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

Problem with NSFileHandle?


  • Subject: Problem with NSFileHandle?
  • From: Glenn Zelniker <email@hidden>
  • Date: Thu, 24 Jun 2004 16:00:09 -0400

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: "Louis C. Sacha" <email@hidden>
  • Prev by Date: Re: Slightly more advanced Cocoa learning resources
  • Next by Date: Passing by reference
  • Previous by thread: XML at WWDC?
  • Next by thread: Re: Problem with NSFileHandle?
  • Index(es):
    • Date
    • Thread