Skip to main content
100%

Preference Pane Identifiers

✓ Published0🌍 Public
KKevinGutowski
Last edited Mar 10, 2020
Created on Mar 10, 2020

This example logs the identifiers of every preference pane in Sketch’s settings window, printing an array of seven string values such as "general," "canvas," and "plugins." It works by calling `MSPreferencesController.sharedController()` and then invoking `toolbarItemIdentifiers()` on that shared controller instance. The output appears as an `__NSFrozenArray` in the console, revealing the fixed order of panes as defined by the application. The code relies on Sketch’s internal Objective-C API exposed through its JavaScript runtime, with no external libraries or rendering involved.

AI-generated description

Similar vizzes