@amdescombes see
https://github.com/dimaqq/pios/blob/master/app_packages/nslog.py
This is based in Rubicon which is similar but also a bit different from objc_util.
The basic idea:
NSLog shows up as objc_util.c.NSLog.
Set NSLog.argtypes =[c_void_p, c_void_p], NSLog.restype=None.
When you call first argument must be ns('%@'), and second arg is ns('string I want to log'). You could create a wrapper as shown in this example which does that for you..
I have not tried, but something like:
def NSLog(msg):
_nslog=c.NSLog
_nslog.argtypes=[c_void_p, c_void_p]
_nslog.restype = None
_nslog( ns('%@'), ns(msg) )