Sam,
The json-rpc documentation sample has some errors. Here's the correct code:
id myservice = [DKDeferred jsonService:@"http://somehost.local/json/" name:@"myservice"];
DKDeferred *d = [myservice someMethod:array_(arg1, arg2)];
[d addCallbacks:callbackTS(self, cbGotResults:) :callbackTS(self,cbGetResultsFailed:)];
Should probably note that the code will generate a warning about no '-someMethod' method found.
Sam,
The json-rpc documentation sample has some errors. Here's the correct code:
id myservice = [DKDeferred jsonService:@"http://somehost.local/json/" name:@"myservice"];
DKDeferred *d = [myservice someMethod:array_(arg1, arg2)];
[d addCallbacks:callbackTS(self, cbGotResults:) :callbackTS(self,cbGetResultsFailed:)];
Should probably note that the code will generate a warning about no '-someMethod' method found.