• 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: Connecting streams together
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Connecting streams together


  • Subject: Re: Connecting streams together
  • From: Ken Thomases <email@hidden>
  • Date: Thu, 24 Apr 2008 20:33:15 -0500

On Apr 24, 2008, at 8:25 PM, vance wrote:
So there should be 2 instances, right? One instance for the NSInputStream and one instance for the NSOutputStream

Yes, I would think so. The input stream to get data from wherever the data is coming from and the output stream for wherever you want it to go. I assumed you already had a setup like this.




OR

Should there be just ONE instance and then we cast it to NSInputStream or NSOutputStream depending on what interface is required at that time?

This doesn't make sense. Casting an object pointer doesn't really change it, or the behavior of the pointed-to object. All it does is give the compiler information (which may be wrong) so it won't bother you with compile-time warnings.


And even if you could, I don't know why you'd want to send the data right back to where you're getting it.

-Ken

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Connecting streams together
      • From: vance <email@hidden>
References: 
 >Connecting streams together (From: vance <email@hidden>)
 >Re: Connecting streams together (From: Ken Thomases <email@hidden>)
 >Re: Connecting streams together (From: vance <email@hidden>)

  • Prev by Date: Re: QTMovie grabing while playback
  • Next by Date: Uniform Type Indicators
  • Previous by thread: Re: Connecting streams together
  • Next by thread: Re: Connecting streams together
  • Index(es):
    • Date
    • Thread