Skip to content

Documentation error #1

@echamberlain

Description

@echamberlain

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions