diff -r b59935b2de79 -r 384f6d1f5784 application/main.c --- a/application/main.c Sat Nov 30 20:33:16 2024 +0100 +++ b/application/main.c Wed Dec 04 08:55:49 2024 +0100 @@ -28,11 +28,14 @@ #include #include +#include #include #include #include +#ifndef UI_COCOA + typedef struct { UiString *str1; UiString *str2; @@ -449,3 +452,20 @@ return (EXIT_SUCCESS); } + +#endif + +#ifdef UI_COCOA + +void application_startup(UiEvent *event, void *data) { + +} + +int main(int argc, char** argv) { + ui_init("app1", argc, argv); + ui_onstartup(application_startup, NULL); + ui_main(); + return (EXIT_SUCCESS); +} + +#endif