• 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: Can I use NSString classes SYNCHRONOUSLY?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can I use NSString classes SYNCHRONOUSLY?


  • Subject: Re: Can I use NSString classes SYNCHRONOUSLY?
  • From: Dave Dribin <email@hidden>
  • Date: Wed, 14 May 2008 11:03:58 -0500

On May 14, 2008, at 10:22 AM, email@hidden wrote:
I'm reading up on NSStream; where delegation is used for Asynchronous process.
However, I need Synchronous processing.

NSInputStream isn't asynchronous + delegate for reading (are you confusing it with another class?), but it's still a pain to read until EOF. Check out dd_readUntilEndOfStream I used on a previous project (MIT license):


<http://ddribin.googlecode.com/svn/trunk/nsurl/NSInputStream+DDExtensions.m >

-Dave

_______________________________________________

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


References: 
 >Can I use NSString classes SYNCHRONOUSLY? (From: email@hidden)

  • Prev by Date: Re: Bypassing Interface Builder
  • Next by Date: Re: Bypassing Interface Builder
  • Previous by thread: Can I use NSString classes SYNCHRONOUSLY?
  • Next by thread: Re: Can I use NSString classes SYNCHRONOUSLY?
  • Index(es):
    • Date
    • Thread