Re: [Pythonmac-SIG] PyObjC and Criollo HTTP server

2020-01-07 Thread Ronald Oussoren via Pythonmac-SIG
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:', >> { >>

Re: [Pythonmac-SIG] PyObjC and Criollo HTTP server

2020-01-07 Thread Ronald Oussoren via Pythonmac-SIG
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