Skip to content

Support for Objective-c function with block completion handler #66

@cy745

Description

@cy745

Hello, i'm implementing a function in MPMediaItemArtwork

- (instancetype) initWithBoundsSize:(CGSize) boundsSize 
                     requestHandler:(NSImage * (^)(CGSize size)) requestHandler;

There is a block parameter in the function, and i have no idea how to create a block with Rococoa, i do know how to create a target-action callback, can we convert a target-action callback to block? Is there any way or any possible to achieve it? @dkocher

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