Re: NSFileHandle -readInBackgroundAndNotify behavior on EOF

2008-06-24 Thread Ken Thomases
On Jun 25, 2008, at 1:31 AM, Rick Mann wrote: It's not clear from the docs what this method does when the NSFileHandle is associated with a file. The docs say it will return an empty NSData at EOF, but what I'm seeing instead is this: I get back an NSData with -length = 50, even though the

Re: [SOLVED] NSFileHandle -readInBackgroundAndNotify behavior on EOF

2008-06-24 Thread Rick Mann
On Jun 24, 2008, at 23:31:24, Rick Mann wrote: It's not clear from the docs what this method does when the NSFileHandle is associated with a file. The docs say it will return an empty NSData at EOF, but what I'm seeing instead is this: I get back an NSData with -length = 50, even though th

NSFileHandle -readInBackgroundAndNotify behavior on EOF

2008-06-24 Thread Rick Mann
It's not clear from the docs what this method does when the NSFileHandle is associated with a file. The docs say it will return an empty NSData at EOF, but what I'm seeing instead is this: I get back an NSData with -length = 50, even though the file is less than half that length. Upon exami