Commit 8ad9ce9a authored by j4cbo's avatar j4cbo

Merge pull request #3 from skabbes/fix/import_foundation

Add Foundation for headers, NSObject requires it
parents 1c49ec6e 42af7f50
...@@ -27,6 +27,7 @@ build_ios/ ...@@ -27,6 +27,7 @@ build_ios/
# xcode stuff # xcode stuff
project.xcworkspace project.xcworkspace
*.xccheckout *.xccheckout
DerivedData
# djinni output directories # djinni output directories
djinni-output-temp/ djinni-output-temp/
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
// This file generated by Djinni from example.djinni // This file generated by Djinni from example.djinni
#import "TXSSortItems.h" #import "TXSSortItems.h"
#import <Foundation/Foundation.h>
@interface TXSSortItemsCppProxy : NSObject <TXSSortItems> @interface TXSSortItemsCppProxy : NSObject <TXSSortItems>
@end @end
...@@ -232,6 +232,7 @@ class ObjcGenerator(spec: Spec) extends Generator(spec) { ...@@ -232,6 +232,7 @@ class ObjcGenerator(spec: Spec) extends Generator(spec) {
writeObjcFile(headerName(cppExtName), origin, mutable.TreeSet[String](), w => { writeObjcFile(headerName(cppExtName), origin, mutable.TreeSet[String](), w => {
w.wl("#import " + q(headerName(ident))) w.wl("#import " + q(headerName(ident)))
w.wl("#import <Foundation/Foundation.h>")
w.wl w.wl
w.wl(s"@interface $cppExtSelf : NSObject <$self>") w.wl(s"@interface $cppExtSelf : NSObject <$self>")
w.wl("@end") w.wl("@end")
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
// This file generated by Djinni from exception.djinni // This file generated by Djinni from exception.djinni
#import "DBCppException.h" #import "DBCppException.h"
#import <Foundation/Foundation.h>
@interface DBCppExceptionCppProxy : NSObject <DBCppException> @interface DBCppExceptionCppProxy : NSObject <DBCppException>
@end @end
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
// This file generated by Djinni from test.djinni // This file generated by Djinni from test.djinni
#import "DBTestHelpers.h" #import "DBTestHelpers.h"
#import <Foundation/Foundation.h>
@interface DBTestHelpersCppProxy : NSObject <DBTestHelpers> @interface DBTestHelpersCppProxy : NSObject <DBTestHelpers>
@end @end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment