--- a/ui/cocoa/window.m Sun Oct 19 21:20:08 2025 +0200 +++ b/ui/cocoa/window.m Mon Nov 10 21:52:51 2025 +0100 @@ -44,6 +44,11 @@ #include <cx/mempool.h> +static int window_default_width = 650; +static int window_default_height = 550; + +static int splitview_window_default_pos = -1; +static UiBool splitview_window_use_prop = TRUE; static UiObject* create_window(const char *title, BOOL simple, BOOL sidebar, BOOL splitview) { UiObject *obj = uic_object_new_toplevel(); @@ -81,9 +86,19 @@ } UiObject* ui_splitview_window(const char *title, UiBool sidebar) { + sleep(1); return create_window(title, FALSE, sidebar, TRUE); } +void ui_window_size(UiObject *obj, int width, int height) { + // TODO +} + +void ui_window_default_size(int width, int height) { + window_default_width = width; + window_default_height = height; +} + /* --------------------------------- File Dialogs --------------------------------- */ void ui_openfiledialog(UiObject *obj, unsigned int mode, ui_callback file_selected_callback, void *cbdata) {