gcd declare

hi,

anybody known how use declare the c method [b]dispatch_get_main_queue/b in xojo declare ?

thanks,

link to apple doc:

From @Joe Ranieri

dim sysLib as ptr = dlopen("/usr/lib/libSystem.B.dylib",5) dim disp as ptr = dlsym(sysLib,"_dispatch_main_q")
disp will be the ptr to the main queue.