Skip to content

Update ObjC code to ARC? #97

Description

@uliwitness

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions