• 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's readDataToEndOfFile
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with NSFileHandle's readDataToEndOfFile


  • Subject: Re: problem with NSFileHandle's readDataToEndOfFile
  • From: Josh Anon <email@hidden>
  • Date: Fri, 27 Dec 2002 15:41:28 -0500

No--you'd use a different method if you're reading in the background, but some of the read functions (e.g. availableData) are supposed to block. Managed to get things working, though, by looping while availableData returned something w/ length > 0. I guess readDataToEndOfFile just wasn't waiting long enough.

Thanks,
Josh

On Friday, December 27, 2002, at 03:12 PM, Erik J. Barzeski wrote:

Isn't the problem just that you're calling readHandle too soon? If I
understand the docs correctly, you should be reading from a different method,
one that is set going by a notification that the data is ready. I think
endingtask.html (it's on your hard drive) and the NSFileHandle docs
(read..andNotify) would be useful here. m.

--
//email@hidden || http://www.areax.net
It's 3 am. Do you know where your program counter is?
_______________________________________________
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.

  • Prev by Date: Re: setting window attributes
  • Next by Date: Re: setting window attributes
  • Previous by thread: Re: problem with NSFileHandle's readDataToEndOfFile
  • Next by thread: NSSecureTextFieldCell in NSTableView returns only bullets
  • Index(es):
    • Date
    • Thread