Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
b872fe3
replace monolithic setup.py with pyproject.toml + scripts
samizdatco Jul 9, 2026
19809d0
bump minimum python version to 3.9
samizdatco Jul 9, 2026
3256a87
publish wheels containing the native extension
samizdatco Jul 9, 2026
18f985c
reflect test results in exit code
samizdatco Jul 9, 2026
d486a29
test for presence of pyobjc+extension, not just paths
samizdatco Jul 9, 2026
cafc691
fix regex escape
samizdatco Jul 10, 2026
62e9ca2
fix objc.super use in ConsoleScript
samizdatco Jul 10, 2026
665bc57
fix `ordered()` crash on grobs and silent dotted-path failures
samizdatco Jul 10, 2026
3f69b4c
add python 3.14 support by bumping pyobjc to 11.1
samizdatco Jul 10, 2026
3639d49
ignore rsrc files resulting from in-place build
samizdatco Jul 10, 2026
dc2ac7f
generate MANIFEST.in only when needed for sdist
samizdatco Jul 10, 2026
cb696af
rename build.py to make.py (to prevent `-m build` shadowing)
samizdatco Jul 10, 2026
46052ee
opt into secure restorable state
samizdatco Jul 10, 2026
ddab30c
update embedded python to 3.14.6
samizdatco Jul 10, 2026
f8ca3c8
update python version compat
samizdatco Jul 10, 2026
7df6d3b
update 1.0.1 docs
samizdatco Jul 11, 2026
ef7093a
bump copyright year
samizdatco Jul 11, 2026
2f58879
fix typos
samizdatco Jul 11, 2026
e0e6d59
add missing 3.14 classifier
samizdatco Jul 11, 2026
00d7e22
use system fonts in typography tests
samizdatco Jul 11, 2026
6363a2a
fixed Text.flow() when invoked w/ callback
samizdatco Jul 11, 2026
30f574f
fix the test for blend-only effects
samizdatco Jul 11, 2026
e4b666a
fix MagicNumber's numeric-protocol implementation
samizdatco Jul 11, 2026
41556e2
fix rasterization of clipping masks based on vector images
samizdatco Jul 13, 2026
318b8d9
add clip() test cases that use canvas transforms
samizdatco Jul 13, 2026
e5b8d1b
replace deprecated WebView with WKWebView
samizdatco Jul 13, 2026
79b7051
update document contents after each edit
samizdatco Jul 13, 2026
bbff6e9
fix license format
samizdatco Jul 13, 2026
74fc923
rename `sync_edits` and `flash_menu` methods
samizdatco Jul 13, 2026
293f85a
add new default editor theme
samizdatco Jul 13, 2026
5280134
add `Assets.car` for macOS 26+ icon
samizdatco Jul 14, 2026
43e2599
Replace setup.py with direct call to tests
samizdatco Jul 14, 2026
cf15d6e
handle quadratic curves in `path_to_polygon`
samizdatco Jul 14, 2026
8315113
Add logo banner to readme
samizdatco Jul 14, 2026
0226c2b
Fix deprecation warning from pyobjc
samizdatco Jul 14, 2026
2e5635e
update module providing UTType*
samizdatco Jul 14, 2026
a119caf
set exit code on script errors when running `plotdevice` headless
samizdatco Jul 14, 2026
8338229
replace `xrange` with `range` in code samples
samizdatco Jul 14, 2026
1773ce0
update markdown docs
samizdatco Jul 14, 2026
ac940c6
fix crash when canvas is zoomed before script has rendered
samizdatco Jul 15, 2026
73471c5
upgrade vendored ace.js to 1.44.0
samizdatco Jul 13, 2026
40164de
local ace modification: filter autocompletions
samizdatco Jul 14, 2026
3846f3a
local ace modification: fix snippet formatting
samizdatco Jul 15, 2026
8ca98b3
rough draft: add command-click documentation lookups
samizdatco Jul 14, 2026
f68126d
Add links to the documentation for all known symbols
samizdatco Jul 14, 2026
81318c4
add usage samples
samizdatco Jul 14, 2026
41ca645
reformat
samizdatco Jul 14, 2026
4daf9a3
ensure only actual function tokens have clickable docs
samizdatco Jul 14, 2026
87f9178
Add tooltips with syntax reference for plotdevice symbols
samizdatco Jul 15, 2026
b22781b
remove command-click docs (but keep tooltip links)
samizdatco Jul 15, 2026
a94fec7
add context menu for opening docs
samizdatco Jul 15, 2026
97474d7
add () to token name in View Docs context menu
samizdatco Jul 15, 2026
e53ec91
clean up usage strings
samizdatco Jul 15, 2026
86cedbf
fix refreshdoc command mishandling an empty source string
samizdatco Jul 15, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
opt into secure restorable state
  • Loading branch information
samizdatco committed Jul 10, 2026
commit 46052ee1c41246565ebcf493583f34bf48db210e
3 changes: 3 additions & 0 deletions plotdevice/gui/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ def awakeFromNib(self):
except OSError: pass
except IOError: pass

def applicationSupportsSecureRestorableState_(self, app):
return True

def applicationDidFinishLaunching_(self, note):
mm=NSApp().mainMenu()

Expand Down
4 changes: 2 additions & 2 deletions plotdevice/gui/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def encodeRestorableStateWithCoder_(self, coder):

def restoreStateWithCoder_(self, coder):
super(PlotDeviceDocument, self).restoreStateWithCoder_(coder)
self.stationery = coder.decodeObjectForKey_("plotdevice:stationery")
self.stationery = coder.decodeObjectOfClass_forKey_(NSString, "plotdevice:stationery")
if self.stationery:
self.script.setStationery_(self.stationery)

Expand Down Expand Up @@ -259,7 +259,7 @@ def encodeRestorableStateWithCoder_(self, coder):

def restoreStateWithCoder_(self, coder):
# restore the splitview positions (if rects were autosaved)
split_frames = coder.decodeObjectForKey_("plotdevice:split_rects")
split_frames = coder.decodeObjectOfClasses_forKey_({NSArray, NSString}, "plotdevice:split_rects")
if split_frames:
it = self.editorView
while it.superview():
Expand Down
4 changes: 2 additions & 2 deletions plotdevice/lib/cocoa.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
NSWindowBackingLocationVideoMemory, NSWindowController, NSWindowTabbingModeAutomatic, \
NSWindowTabbingModePreferred, NSWorkspace
from Foundation import CIAffineTransform, CIColorMatrix, CIContext, CIFilter, CIImage, CIVector, Foundation, NO, \
NSAffineTransform, NSAffineTransformStruct, NSAttributedString, NSAutoreleasePool, NSBundle, \
NSData, NSDate, NSDateFormatter, NSFileCoordinator, NSFileHandle, \
NSAffineTransform, NSAffineTransformStruct, NSArray, NSAttributedString, NSAutoreleasePool, \
NSBundle, NSData, NSDate, NSDateFormatter, NSFileCoordinator, NSFileHandle, \
NSFileHandleDataAvailableNotification, NSHeight, NSInsetRect, NSIntersectionRange, \
NSIntersectionRect, NSLocale, NSLog, NSMacOSRomanStringEncoding, NSMakeRange, NSMidX, NSMidY, \
NSMutableAttributedString, NSMutableData, NSNotificationCenter, NSObject, NSOffsetRect, \
Expand Down