Skip to content

About

A demo of glitter-uikit, the native macOS (AppKit) renderer for glitter

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

21 Commits

Folders and files

uikit-demo

A demo of glitter-uikit, the native macOS (AppKit) renderer for glitter, a Replicant-style reconciler for Clojure (well, Jolt, native Clojure on Chez Scheme, no JVM anywhere). If you come from the web: glitter is the reconciler, AppKit is the DOM. Hiccup goes in, real NSButtons come out.

The hub and every example, live

Examples

Preview Window What it shows
Hub one button per registered example, derived from a registry each example joins with a single require line
Counter the 7GUIs Counter task, and the template every other example follows
Currency Converter a faithful port of Learning Cocoa's 2001 example, its whole controller class dissolved into three defmethods
Live Currency a fiber-parked HTTPS fetch of real ECB rates, converting as you change currencies
— Particle Toy a CALayer-backed physics playground: click to burst, gravity and wall bounces settle it

There's also a screen recording of Live Currency fetching real rates as the currencies change, and two more Live Currency captures, converting USD to EUR and, a moment later, USD to GBP.

Read the guide → for how the app is built, the AppKit integration that isn't reconciled, the dependency pins and why each one is exactly what it is, and what each example taught along the way.

Requirements

  • jolt 0.8.0 or newer
  • brew bundle installs the rest: Graphviz and ffmpeg

Running

brew bundle
jolt demo     # run the app
jolt bundle   # AOT-compile it into Demo.app
jolt app      # open Demo.app

Documentation

See docs/guide/index.md.

Origin

Adapted from Larry Staton's original glitter-uikit-demo, which built the same app as a literate org-mode document. This copy converts it into a conventional, hand-maintained Clojure project; the original document's own history is the fuller account of how each piece came to be.

License

EPL 2.0, the same license as Jolt and Clojure. See LICENSE. Larry Staton agreed to EPL 2.0 for the parts adapted from his original.

About

A demo of glitter-uikit, the native macOS (AppKit) renderer for glitter

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages