Re: problem with NSFileHandle's readDataToEndOfFile
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.