ui/cocoa/toolkit.m

changeset 720
6fa3c629000f
parent 687
d43b4fcd3d8c
child 721
e9f655afc7ed
--- a/ui/cocoa/toolkit.m	Sun Aug 24 13:10:24 2025 +0200
+++ b/ui/cocoa/toolkit.m	Sun Aug 24 13:30:56 2025 +0200
@@ -37,6 +37,7 @@
 #import "image.h"
 #import "menu.h"
 #import "Toolbar.h"
+#import "UiJob.h"
 
 #import "AppDelegate.h"
 
@@ -160,7 +161,10 @@
 /* ------------------- Job Control / Threadpool functions ------------------- */
 
 void ui_job(UiObject *obj, ui_threadfunc tf, void *td, ui_callback f, void *fd) {
-
+    UiThread *thread = [[UiThread alloc]init:obj jobfunc:tf jobdata:td];
+    thread.finish_callback = f;
+    thread.finish_userdata = fd;
+    [thread start];
 }
 
 void ui_call_mainthread(ui_threadfunc tf, void* td) {

mercurial