Argument is a block, but no signature available

Ben Byram-Wigfield <[email protected]> Fri, 16 Mar 2018 19:39:26 +0000
Newsgroups gmane.comp.python.apple
Message-ID <[email protected]>
I’m trying to use a Completion Handler block as an argument for a Cocoa AVMIDIPlayer method:

midiPlayer = AVMIDIPlayer.alloc().initWithContentsOfURL_soundBankURL_error_(midiFile, None, None)
midiPlayer.prepareToPlay()
midiPlayer.play_(myCompletionHandler)

But I get:

Argument 2 is a block, but no signature available

From what I can find out, this points to a bit in the metadata of PyObjC that needs a bit of work. Is that the case?

I’m using the default version 2.5.1 bundled with MacOS.

Thanks

Ben
_______________________________________________
Pythonmac-SIG maillist  -  [email protected]
https://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG