Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ObjC code to ARC? #97

Open
uliwitness opened this issue Feb 19, 2019 · 1 comment
Open

Update ObjC code to ARC? #97

uliwitness opened this issue Feb 19, 2019 · 1 comment
Labels
platform:macOS Mac-specific tickets.

Comments

@uliwitness
Copy link
Owner

It would probably make development a lot easier if we could make the code use Automated Reference Counting in our ObjC code. A few caveats though:

  1. We'd have to be careful in spots where we stick native objects in void *s to make sure they are still retained as ARC doesn't manage those
  2. How would our native calls (ObjC syntax in a Hammer script) work with this? Right now we just treat the returned object pointers like ints, but now we'd have to parse the annotations Swift uses and properly retain/release objects. OTOH these annotations weren't there when we started doing this.
  3. There's no point in porting the editor XIBs etc., as we'll replace them with Stacksmith stacks and parts anyway, long-term.
@uliwitness
Copy link
Owner Author

uliwitness commented Feb 19, 2019

Also thinking about writing some new Mac code in Swift, but the bridging to C++ will probably be a bit annoying.

@uliwitness uliwitness added the platform:macOS Mac-specific tickets. label Mar 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform:macOS Mac-specific tickets.
Projects
None yet
Development

No branches or pull requests

1 participant