}
string t_cocoa_generator::function_result_helper_struct_type(t_function* tfunction) {
- return capitalize(tfunction->get_name()) + "_result";
+ if (tfunction->is_oneway()) {
+ return capitalize(tfunction->get_name());
+ } else {
+ return capitalize(tfunction->get_name()) + "_result";
+ }
}
// generate a process_XXXX method for each service function, which reads args, calls the service, and writes results
functions = tservice->get_functions();
for (f_iter = functions.begin(); f_iter != functions.end(); ++f_iter) {
+ if ((*f_iter)->is_oneway()) {
+ continue;
+ }
out << endl;
string funname = (*f_iter)->get_name();
out << indent() << "- (void) process_" << funname << "_withSequenceID: (int32_t) seqID inProtocol: (id<TProtocol>) inProtocol outProtocol: (id<TProtocol>) outProtocol" << endl;