• 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: XML-RPC call using Cocoa Frameworks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XML-RPC call using Cocoa Frameworks


  • Subject: Re: XML-RPC call using Cocoa Frameworks
  • From: Torsten Curdt <email@hidden>
  • Date: Mon, 16 Jun 2008 17:18:46 +0200

The interest in a "synchronous" call is more an artifact of getting something working and keeping it simple so that I am testing the actual call and dealing with the return response without adding the complexity of asynchronous call backs and multiple threads.

Asynchronous does not mean multi-threaded.

I will certainly move to that model as my next step. :)

Certainly is less complicated than it sounds


XMLRPCRequest *request = [self createXMLRPCRequest];

    NSDictionary *params = [NSDictionary dictionaryWithObjectsAndKeys:
        ...
        nil];

	[request setMethod: @"method" withObject:params];

XMLRPCConnection *connection = [[XMLRPCConnection alloc] initWithXMLRPCRequest: request delegate: self];

if (connection == nil)
{
NSLog(@"Connection failed.");
...
return;
}


And then implement the success and failure methods on the delegate.

cheers
--
Torsten
_______________________________________________

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: 
 >XML-RPC call using Cocoa Frameworks (From: "Kevin McQuown" <email@hidden>)
 >Re: XML-RPC call using Cocoa Frameworks (From: Torsten Curdt <email@hidden>)
 >Re: XML-RPC call using Cocoa Frameworks (From: "Kevin McQuown" <email@hidden>)

  • Prev by Date: Re: NSOutlineView threading problem
  • Next by Date: Re: NSOutlineView threading problem
  • Previous by thread: Re: XML-RPC call using Cocoa Frameworks
  • Next by thread: NSMutableAttributedString's setBaseWritingDirection problem
  • Index(es):
    • Date
    • Thread