Hi again,
I changed Jon's NSLog function to make it a little bit more efficient:
from objc_util import c, ns, c_void_p, c_void_p _nslog = c.NSLog _nslog.argtypes = [c_void_p, c_void_p] _nslog.restype = None def NSLog(msg): _nslog(ns('%@'), ns(str(msg)))I think it would be nice if it could be added to the objc_util package directly, as it has been very useful to me.
Notice I cast the msg parameter into a string, that way you can pass anything you want to it and it will output that to the XCode console.
Cheers
Andre