Skip to content

Bring back a smart pointer for reference counting #24

Closed
@SSheldon

Description

@SSheldon

The Id struct was moved into an external crate in 81a972f, but it seems fundamental enough to exist in this crate in some form.

It was removed because, although its design satisfied the requirements of my foundation wrapper, it isn't compatible with the cocoa crate. The cocoa crate is a lower-level wrapper that operates with raw pointers, so it expects objects as *mut Object where the Id struct could be dereferenced to &Object.

The smart pointer should return with a design that will also be usable by cocoa and other libraries without requiring that users put a lot of effort into determining a safe interface for them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions