• 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: accessing the CFSteam that NSURLConnection is using?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: accessing the CFSteam that NSURLConnection is using?


  • Subject: Re: accessing the CFSteam that NSURLConnection is using?
  • From: sean <email@hidden>
  • Date: Wed, 12 Oct 2005 21:27:09 -0700

Great! This looks like exactly what I need.

Is there a swoopty way of forward all of the messages that
PostingStream receives to the initializing NSInputStream? Or should I
override all of NSStream's methods to do this?

> - create an NSInputStream subclass (let's call it PostingStream) that
> initializes from another NSInputStream and passes all messages from
> itself to the other stream.  Override the methods read:maxLength: and
> getBuffer:length: so that they perform the read on the other stream,
> then somehow notify your code of how many bytes were read.
> - create a PostingStream from the stream for the post body
> - set the PostingStream as the HTTPBodyStream on the outgoing request
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: accessing the CFSteam that NSURLConnection is using?
      • From: sean <email@hidden>
References: 
 >accessing the CFSteam that NSURLConnection is using? (From: sean <email@hidden>)
 >Re: accessing the CFSteam that NSURLConnection is using? (From: sean <email@hidden>)

  • Prev by Date: Newbie Q: layout in NSMenu
  • Next by Date: where's showAllApplications ?
  • Previous by thread: Re: accessing the CFSteam that NSURLConnection is using?
  • Next by thread: Re: accessing the CFSteam that NSURLConnection is using?
  • Index(es):
    • Date
    • Thread