e4f7e32887Update to Big Sur 15.5.2 / Clang 12.0.5. Improved handing of avaiability attributes and boolean values.Greg Pomerantz2021-11-16 16:01:03 -0500
f4a9dae250Update to latest Clang AST spec.Greg2021-06-11 11:24:25 -0400
e5c8e114bfAdd garbage collection memory mangement mode (gogc). Lots of fixes related to pointer handling and memory management.Greg2019-06-18 09:15:46 -0400
79bb282188Complete conversion to pointer wrapped types. Update tests, fix parameter handling for functions.Greg2019-06-13 16:47:36 -0400
ac9eecafd8Convert all Go wrapped objects to pointers so the Go GC can track all of the Objective-C pointers. Still working on bug with typedefs to wrapped types.Greg2019-06-13 09:25:53 -0400
b0139b9aa8Bug fixes and clean up how methods are added to an interface from superclasses and protocols. Ensure that "Unavailable" attributes are handled properly.Greg2019-06-11 16:41:21 -0400
9a4fabda24Run gofmt -w on everything. Add 'gogc' option to use Go garbage collector for memory management.Greg2019-06-11 12:38:22 -0400
90166a4379Bug fixes. Read availability attributes when adding interfaces and categories. Memory leak fixes. Add "autorelease" confiruation directive. Fix parameter types for subclass method overriding.Greg2019-06-06 00:22:07 -0400
50b9387a91Add frameworkdirs: directive to allow the user to point to directories where Objective-C frameworks can be found. Rework the cgoFlags. Search Objective-C protocols when looking for subclass methods to override.Greg2019-06-04 21:18:06 -0400
f93a893060Bug fix in Objective-C method signature parsing.Greg2019-06-04 13:01:51 -0400
773886e0f1Complete unit tests for nswrap/types.Greg2019-06-04 11:27:46 -0400
a251e7382eImprove test coverage.Greg2019-06-04 00:14:04 -0400
d8552bcf9dUse strict unmarshal for configuration file, to detect typos in config directives. Do not panic on failed regexp in AST parsing, instead return &ast.Unknown{} for further debugging. Add debutast: directive to print context when AST nodes are not recognized.Greg2019-06-03 11:07:12 -0400
4f0cdf4d1aSome AST tweaks and add astfile: config option to read AST from a file instead of running Clang. Attempt to port to MacOS Mojave.Greg2019-06-01 15:10:51 -0400
a7df3a4e71Enable -fobjc-arc for AST generation when arc=true in nswrap.yaml. This still doesn't workGreg2019-05-31 16:25:58 -0400
e29ae58a9cAdd experimental "arc" directive to nswrap.yaml to experiment with enabling Objective-C automatic reference counting. Bindings currently will not compile with this turned on.Greg2019-05-31 12:42:52 -0400
5a5a4f9406AST tweaks and new tests.Greg2019-05-31 10:21:04 -0400
a94969338bMove main command to the main package directory.gmp2019-05-29 13:13:04 -0400
7bcd25bb05Move main command to the main package directory.gmp2019-05-29 13:13:04 -0400
a2d0f9bc4fChange domain name in package path.Greg2019-05-29 12:57:53 -0400
749fd503ddAdd README.md and LICENSE.Greg2019-05-29 00:03:51 -0400
2f4d76c6afBetter handling of slice size vs. capacity in pointers to pointers.Greg2019-05-29 00:02:27 -0400
840a055a11Clean up variadic functions and methods.Greg2019-05-28 20:04:39 -0400
1cc0f0e26aHandle pointers to pointers as Go slices.Greg2019-05-28 15:52:16 -0400
86b27e6c42Simplify polymorphic implementation, bug fix to variadic functions.Greg2019-05-28 13:20:44 -0400
154a2fac14Disambiguate all class and instance method names.Greg2019-05-28 13:03:23 -0400
d086c0fdfeIntermediate commit to work on polymorphic method handling.Greg2019-05-27 13:47:59 -0400
86ff14b533A few small fixes.Greg2019-05-24 15:40:01 -0400
34fbcec965Subclasses can have new methods in addition to overriding existing methods (first draft).Greg2019-05-24 12:36:01 -0400
38c7856b89Bug fix and start improvements to subclassing.Greg2019-05-24 00:12:46 -0400
a616761475Change Go types to plain structs instead of pointers to structs. Add methods for protocols that Objective-C interfaces claim to implement. Separate class methods from instance methods in internal data structures. Add layout constraints with visual formats to examples/app. Fix typedefs for wrapped objective-c object types.Greg2019-05-23 16:31:47 -0400
4f6930002dFirst draft that handles subclasses and improvements to delegate implementation.Greg2019-05-21 16:26:52 -0400
8de87cddb7Performance improvements (do not parse addresses or locations unless location tracking is enabled). Allow profiling option. Add some comments and clean-ups to types/*.go.Greg2019-05-11 23:03:56 -0400
49fd749fe3Use C.GoBytes() in examples/bluetooth.Greg2019-05-10 02:35:52 -0400
2fe435f137Bug fix: delete exports.go if it is not needed.Greg2019-05-10 02:23:07 -0400
dcb7105fcaComplete the Delegates wrapper. Disambiguate polymorphic methods. Bluetooth example is now a functioning heart rate monitor. Additional bug fixes in Go types (instances where *Id needs to be used instead of NSObject).Greg2019-05-10 02:00:56 -0400
b00ecd4ac0Switch from toml to yaml for configuration files. Begin scaffolding for Protocols and Delegates.Greg2019-05-09 12:25:45 -0400
cccbfbbc00Autorelease all objective-C objects constructed using "alloc". Clean up type-related comments in generated code. Do not use pointers to Go interfaces as receivers, use pointer to Id instead.Greg2019-05-09 08:52:35 -0400
ea34821fe6Add a button to examples/app.Greg2019-05-07 15:49:43 -0400
1c5c61308cAdd SelectorHelpers() so you can send named selectors to Objective-C.Greg2019-05-07 15:17:23 -0400
8ed05fb451Work around cgo (or Clang dwarf) bug with incorrect struct size calculation by returning void pointers for NS object constructors. Expand examples/app to start building menus.Greg2019-05-07 14:48:06 -0400
511f2f1968Improve type handling for enums. Handle "__kindof" qualifiers. Add examples/app. Allow VisibilityAttr "Hidden".Greg2019-05-06 13:21:36 -0400
959b87342eReturn Golang bools from Objective-C functions that return BOOL. Move nswrap command to cmd/nswrap.Greg2019-05-06 09:00:38 -0400
717c7e76feChange name of New* functions to *Alloc to mimic Objective-C's nested alloc/init call idiom.Greg2019-05-04 23:32:57 -0400
eced251710Create GoString helper methods for anything that has a "WithString" method. Multiple bug fixes in type system, fixed parsing of id, instancename and instancetype, allow NullableAnnotations after generic lists (e.g. "id<ObjectType> _Nullable"). Helper function to identify types that are function pointers.Greg2019-05-03 13:14:30 -0400
8ea3d57cf0Fix bug in examples/bluetooth/ble/ble_delegate: deleted references to unused scanCallback property.Greg2019-05-02 14:22:20 -0400
c5a523a8b8Add bluetooth example.Greg2019-05-02 14:17:11 -0400
758ea40679Add constants for C enum types. Add NSEnumerator helper. Fix bugs in Go class names. Add "Frameworks" option to nswrap.toml. Improve handling of ast.EnumDecl and ast.EnumConstantDecl.Greg2019-05-02 14:14:29 -0400
9b71889a69Include type qualifiers and nullability attributes in Objective-C function return types. Add NSEnumerator to examples/foundation.Greg2019-05-01 13:58:20 -0400
11366be6d0Convert *Id to any wrapped type. Shorten names for class methods that return an instance of the class. Fix return types for Go interfaces.Greg2019-05-01 12:32:42 -0400
57ad898945Bug fix: Process types before converting to go function parameter lists.Greg2019-05-01 11:01:50 -0400
be92b200adHandle functions identified by regexp in nswrap.toml config file. Handle inherited class methods.Greg2019-05-01 10:58:29 -0400
380fee39bfUpdate foundation example to query whether the array contains specified objects.Greg2019-04-30 10:34:56 -0400
3573aa9144Change Go types to simple unsafe Pointers instead of pointers wrapped in structs. It could be possible to handle pointers to pointers now.Greg2019-04-30 09:14:25 -0400
0e89d2c29aDo not memoize type parser as it causes bugs with typedefs, 'instancetype' etc. Clean up typedefs and type parameters as soon as Types are created.Greg2019-04-30 06:59:05 -0400
d78e055008Handle Objective-C methods with variadic arguments.Greg2019-04-29 16:14:45 -0400
57232548faGo type declarations should point to C typedefs. Add parser for C enum types.Greg2019-04-29 13:31:13 -0400
c03e37bd54Make a Go Interface instead of a struct for top level objects. Use a new struct Id as a concrete version of that type.Greg2019-04-29 11:46:48 -0400
c0c17e88d1Fix to go type declarations.Greg2019-04-29 10:37:43 -0400
500b457d32Fix type wrapping and procesing so duplicate types do not get declared.Greg2019-04-27 22:24:05 -0400
977a09e77eBetter handling of multiple classes and input files. Handle Objective C type parameter declarations. Check Typedefs when determining if a Type is a pointer or a function.Greg2019-04-26 22:44:30 -0400
6135381cc7Allow #pragma directives to be provided in the config file.Greg2019-04-26 15:41:29 -0400
009a974a1aRename to nswrap, put configuration in a toml file, allow imports and sysimports.Greg2019-04-26 15:34:36 -0400
ead1623d4bEliminate unnecessary code from wrap/main.go. Include full attributes in return types of C functions to reduce compiler warnings.Greg2019-04-26 15:08:44 -0400
b93ba4c01fFix handling of signed, unsigned, complex, and long long types in Go type declarations.Greg2019-04-26 14:15:18 -0400
4f260dda0eFix handling of id and void* types. Add helper functions to convert char* to and from Go strings. Parse block (^) types. Skip methods with functions as parameters. Fix passing pointers go C code.Greg2019-04-26 14:08:43 -0400
98e19ca726Fix handling of wrapped types. Use new type system for go function declarations. Working wrapper for simple test case.Greg2019-04-26 10:56:00 -0400
e143dbb6a7Fixed type wrapping, further conversion to new type system. The Go side looks pretty good at this point.Greg2019-04-26 10:07:34 -0400
fb21881a8bAdd type conversion functions to types package. Start moving the wrapper to the new type system. Intermediate commit before I rip out the old stuff, not working yet.Greg2019-04-26 09:04:53 -0400
885658b67bImplement new type system. Working wrapper for simple Objective-C interfaces.Greg2019-04-23 15:48:11 -0400
4867bb80f4Memoize types/TypeName() for performance.Greg2019-04-18 14:40:02 -0400
da2008c597Function to print text version of a C TypeName. Fix bugs in Nest(), ZeroOrMore(), OneOrMore() and Objective-C Generics parsers.Greg2019-04-18 14:04:01 -0400
b7134bedb7Restructure the type parsers. Remove struct declaration parsers.Greg2019-04-18 11:22:53 -0400
6955d79702Bug fix to stripAbstract(), some minor parser restructuring.Greg2019-04-18 10:21:03 -0400
e7270e95cfAdd type parsing infrastructure.Greg2019-04-18 09:38:46 -0400
0b0b73c6bdHandle class methods.Greg2019-04-11 17:00:36 -0400
3ecb3b1eebFix types in c and go parameter lists.Greg2019-04-11 13:09:02 -0400
74f4073d35Improved type handling.Greg2019-04-11 11:46:24 -0400
2fbd9134a0Generate go and objc wrapper functions. Translate classes into wrapped unsafe.Pointer() instances. Embed super-class to simulate inheritance and hold pointers only at the base class.Greg2019-04-10 14:00:48 -0400
bcb4a0680dIdentify methods from interfaces and categories, determine their parameter and return types.Greg2019-04-09 23:19:49 -0400