Skip to content

VSNewt 0.2.0

Latest

Choose a tag to compare

@MatthiasWM MatthiasWM released this 28 Sep 21:16
· 1 commit to master since this release

Newton apps run in windows: nBattleship 1.4 plays to the end. For macOS 13 or later on Apple Silicon.

  • A package's app opens in a window of its own (newtc with FLTK), drawn at the Mac's resolution: views with their frames and fills, text in the Newton's font families (stood in for by Mac fonts), pictures, icons, shapes, viewDrawScripts, XOR drawing and hiliting. Cmd-= and Cmd-- scale the window.
  • The mouse is the pen: taps, drags, TrackHilite, strokes (GetPoint, StrokeBounds, ...), and taps no view takes as tap gestures (viewGestureScript).
  • Buttons, checkboxes, pickers and popup menus (DoPopup), modal dialogs, alerts.
  • Timers: AddDelayedCall, AddDeferredSend and the others, viewIdleScript.
  • Soups, kept between runs in a store file ("args": ["-store", "app.store"]), written safely, with a backup.
  • The grammar knows newtc's test functions (TestTap, TestSnapshot, ...).

The handwriting font (Casual) needs Apple Casual installed on the Mac; else another font stands in.

Install

Download vsnewt-darwin-arm64-0.2.0.vsix below, then in VS Code: Extensions view, …, Install from VSIX… (or code --install-extension vsnewt-darwin-arm64-0.2.0.vsix). Requires macOS 13 or later on Apple Silicon.

The bundled newtc is built from newton-framework 9ac9d0d.

NewtPlay: Newton packages as a Mac app

NewtPlay-0.1-macOS.zip: a Mac app that runs Newton packages, the same newtc without VS Code. Unzip it and move NewtPlay.app to Applications: signed and notarized, for macOS 13 or later on Apple Silicon and Intel Macs.

  • Double-click a package (.nspkg, .newtonpkg), drop one on NewtPlay, or choose one in its window (Run a Package..., Recent). .pkg files open too; a downloaded .pkg is checked by macOS as an installer first, so renaming it to .nspkg is easiest.
  • Each package keeps its data in ~/Library/Application Support/NewtPlay/<package name>/, one store for each version of the package.
  • Make a Shortcut... and Make an App... put an app next to the package that runs it (with NewtPlay, or with NewtPlay inside), made and signed on your Mac.
  • nBattleship 1.4 and 2.5 play to the end.

NewtPlay 0.1 is built from newton-framework ed41f10. It replaces nBattleship-1.4-macOS.zip, which was here before: open nBattleship's package with NewtPlay, or make an app of it with Make an App....