Skip to main content
100%

Gist 03ea367d00ac593217cf6770ee1cc539

✓ Published0🌍 Public
KKevinGutowski
Last edited May 18, 2019
Created on May 18, 2019

This example demonstrates a Sketch plugin that launches a floating panel window with a table view interface. The code uses Sketch’s JavaScript API, `NSThread`, `NSPanel`, and `NSMakeRect` to construct a 312×210 pixel textured window, position it at the screen center, and set it to float above other windows. It manages a thread dictionary key to prevent duplicate panels, toggling the window open or closed on repeated plugin runs. The plugin calls `document.showMessage()` for user feedback and hides the miniaturize and zoom buttons via `standardWindowButton`, with the table view setup currently stubbed out.

AI-generated description

Similar vizzes