I'm looking at the feasibility of using a Delphi XE2 DataSnap server pushing data from a SQL server through to an iPad application.
I've written the DataSnap server application, and am looking now at the iOS application. The TServerMethod
returns the data as a TDataSet
in iOS. What isn't clear is how does one go about extracting the resulting TDataSet
in Xcode as a NSMutableArray
? Below is the generated code in the DSProxy.m
:
-(id) getTServerMethods1_GetMileageList {
return [NSArray arrayWithObjects:
[DSRESTParameterMetaData parameterWithName: @"Value" withDirection:Input withDBXType:WideStringType withTypeName:@"string"],
[DSRESTParameterMetaData parameterWithName: @"" withDirection:ReturnValue withDBXType:TableType withTypeName:@"TDataSet"],
nil];
}