commit | 853bdfea38cf713b0461f6442883547a11d682ec | [log] [tgz] |
---|---|---|
author | Andrew McGeachie <geechorama@apache.org> | Tue May 05 00:44:48 2009 +0000 |
committer | Andrew McGeachie <geechorama@apache.org> | Tue May 05 00:44:48 2009 +0000 |
tree | ebef66e04e15a138f65bed6d4a768cc2eea2664f | |
parent | f93f7a661160caf0536d7c7d54c155d0a1330da4 [diff] |
THRIFT-60. Make generated constants object extend NSObject. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@771514 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/compiler/cpp/src/generate/t_cocoa_generator.cc b/compiler/cpp/src/generate/t_cocoa_generator.cc index 48c853c..aefb6a6 100644 --- a/compiler/cpp/src/generate/t_cocoa_generator.cc +++ b/compiler/cpp/src/generate/t_cocoa_generator.cc
@@ -338,7 +338,7 @@ std::ostringstream const_interface; string constants_class_name = cocoa_prefix_ + program_name_ + "Constants"; - const_interface << "@interface " << constants_class_name << " "; + const_interface << "@interface " << constants_class_name << " : NSObject "; scope_up(const_interface); scope_down(const_interface);