It says in the "Stream Programming Guide for Cocoa" (Pg 10) doc: "...The Cocoa stream classes use the delegation model for asynchronous behavior (assuming run-loop scheduling) while Core Foundation uses client callbacks...."
oh... wait a minute: "...(assuming run-loop scheduling)". Okay. I'm not doing run-loop scheduling. Essentially I want to mimic the Java HTTPConnect example I gave. I also want to be able to change the request property to POST, as in the Java equivalent: connection.setRequestMethod(HttpConnection.POST); Basically this is a SOAP/WSDL situation. I tried the Apple Web Services paradigm via the command-line $>WSMakeStubs... to create an ObjC shell. But this paradigm doesn't fit the Java method I must replace: To synchronously send a SOAP Envelope (XML) and immediately processing the XML reply: Cocoa <--- SOAP Envelope ---> WSDL Server The XML data is processed on the client vs server. I'll study your code. Thanks. On 05/14/2008 09:03 Dave Dribin wrote .. > On May 14, 2008, at 10:22 AM, [EMAIL PROTECTED] 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 (Cocoa-dev@lists.apple.com) > > 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: > http://lists.apple.com/mailman/options/cocoa-dev/fclee%40dialup4less.com > > This email sent to [EMAIL PROTECTED]
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]