Forum Archive

How to get currentRunLoop

wolf71

how to using objc get the currentRunLoop ?

  • (NSRunLoop *)currentRunLoop

using :
c = cdll.LoadLibrary(None)
c.currentRunLoop()

but, error.

JonB

from objc_util import *
NSRunLoop=ObjCClass('NSRunLoop')
r=NSRunLoop.currentRunLoop()

wolf71

@JonB Thanks. It's ok.

JonB

What exactly are you trying to do?

wolf71

@JonB It's work. :-)