Re: Reading from an NSInputStream
Re: Reading from an NSInputStream
- Subject: Re: Reading from an NSInputStream
- From: Evan DiBiase <email@hidden>
- Date: Sat, 22 Nov 2003 12:17:41 -0500
On Nov 22, 2003, at 12:03 PM, Troy Dawson wrote:
// reads up to length bytes into the supplied buffer, which must be at
least of size len. Returns the actual number of bytes read.
I could use -read, but what I really want is just to get as many bytes
as are available, which is why -getBuffer seemed appropriate.
you're not checking the return of getBuffer, which can and will return
NO if it doesn't like you.
True, but the code's crashing before I can even check the return value.
Evan
_______________________________________________
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.