rococoa
rococoa copied to clipboard
Support for Objective-c function with block completion handler
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
From my understanding this depends on upstream ^1 changes.