And given de example on https://criollo.io:
- The class name is CRServer, not CRApplication
- The selector is “get:block:” instead of “get_block:”, which also means the
block is argument 3 instead of 2.
>> objc.registerMetaDataForSelector(
>> b'CRServer',
>> b’get:block:',
>> {
>>
Hi,
You also need to remove the call to objc.selector. With correct metadata
“blocks” are callables in Python code.
Ronald
—
Twitter: @ronaldoussoren
Blog: https://blog.ronaldoussoren.net/
> On 6 Jan 2020, at 23:59, Rand Dvorak wrote:
>
> Same result:
>
> Updated code:
>
> import objc
> C