• 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: Reading from an NSInputStream
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Reading from an NSInputStream
      • From: Evan DiBiase <email@hidden>
References: 
 >Reading from an NSInputStream (From: Evan DiBiase <email@hidden>)
 >Re: Reading from an NSInputStream (From: Troy Dawson <email@hidden>)

  • Prev by Date: KeyDown events in a ComboBox the 2nd
  • Next by Date: Demo "Panther-only" application...
  • Previous by thread: Re: Reading from an NSInputStream
  • Next by thread: Re: Reading from an NSInputStream
  • Index(es):
    • Date
    • Thread