--- 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 <stdio.h> #include <stdlib.h> +#include <string.h> #include <ui/ui.h> #include <cx/buffer.h> #include <cx/utils.h> +#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