Re: Can I use NSString classes SYNCHRONOUSLY?
Re: Can I use NSString classes SYNCHRONOUSLY?
- Subject: Re: Can I use NSString classes SYNCHRONOUSLY?
- From: email@hidden
- Date: Wed, 14 May 2008 10:03:20 -0700 (PDT)
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@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
_______________________________________________
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