This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-06-13
Channels
- # announcements (4)
- # babashka (72)
- # beginners (86)
- # biff (24)
- # boot (1)
- # calva (71)
- # cherry (1)
- # cider (8)
- # clerk (7)
- # clj-kondo (23)
- # clojure (78)
- # clojure-art (3)
- # clojure-austin (2)
- # clojure-europe (18)
- # clojure-hamburg (6)
- # clojure-nl (1)
- # clojure-norway (17)
- # clojure-uk (2)
- # clojuredesign-podcast (21)
- # clojurescript (17)
- # conjure (1)
- # cursive (18)
- # datahike (7)
- # datomic (7)
- # emacs (1)
- # etaoin (5)
- # events (1)
- # figwheel-main (4)
- # graalvm (37)
- # graphql (1)
- # humbleui (12)
- # hyperfiddle (10)
- # introduce-yourself (1)
- # jobs-discuss (7)
- # kaocha (1)
- # malli (5)
- # off-topic (12)
- # pathom (12)
- # practicalli (1)
- # reitit (11)
- # releases (2)
- # shadow-cljs (45)
- # tools-build (33)
- # wasm (18)
Has anyone successfully built JWM on MacOS? https://github.com/HumbleUI/JWM#building-from-source Any tips, or should I instead build on Windows & transfer the artifact to Mac for testing?
I haven't tried, but you can try using the github workflow steps for mac https://github.com/HumbleUI/JWM/blob/main/.github/workflows/build-deploy.yml#L48
Hmm, good catch. This looks runnable, just need to round up all of my missing tools/deps
Or if you don't want to bother building locally, you could probably just fork and let github build changes for you.
I think you get a certain number of free hours a month
Now that's a real protip! I'll opt for trying locally first, hope to release several JWM PRs over the coming months

you can’t compile mac version on windows (unfortunately). C++ doesn’t really have cross-compilation
I did get Mac compilation working, https://github.com/HumbleUI/JWM/pull/268 but I've been fighting with Mac's API while implementing bringToFront
Below works but needs cleanup & reimplementation. Will be a while longer before I submit a PR
I'd also like to ask about exposing unique parts of Mac's API to downstream Clojure apps.
I'd like to be able to invoke [nsWindow setLevel:9999]
& [nsWindow setCollectionBehavior:...]
from my app.
Because these are specific to MacOS, do you have a recommendation on exposing these?
It seems wrong to add to JWM/shared/java/Window.java
. What about adding to macos/cc/WindowMac.hh
& having downstream Clojure app run:
(condp = os
:mac (do (.setLevel window 9999) ...)
...)
@tonsky How does this sound?Appreciate the encouragement in this thread;
Opened https://github.com/HumbleUI/JWM/pull/269 for Mac bringToFront
& isFront
I'd also like to ask about exposing unique parts of Mac's API to downstream Clojure apps.
I'd like to be able to invoke [nsWindow setLevel:9999]
& [nsWindow setCollectionBehavior:...]
from my app.
Because these are specific to MacOS, do you have a recommendation on exposing these?
It seems wrong to add to JWM/shared/java/Window.java
. What about adding to macos/cc/WindowMac.hh
& having downstream Clojure app run:
(condp = os
:mac (do (.setLevel window 9999) ...)
...)
@tonsky How does this sound?