Skip to content

Higher-level interface to create delegates #205

Open
@vbo

Description

@vbo

It seems currently the only way to create e.g. an NSWindowDelegate is through objc::declare::ClassDecl interface:

let superclass = Class::get("NSObject").unwrap();
let mut decl = ClassDecl::new("MyWindowDelegate", superclass).unwrap();
decl.add_method ...

Should this crate expose trait NSWindowDelegate and make the creation of such delegate more type-safe?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions