static void Main(string[] args) { NativeControlsApplication.Init(Environment.GetEnvironmentVariable("TOKEN")); NSApplication.Init(); NSApplication.SharedApplication.ActivationPolicy = NSApplicationActivationPolicy.Regular; mainWindow = new Window(new Rectangle(0, 0, 300, 368)) { Title = "Cocoa Figma Local File Sample", }; Example1(); //Example2(); mainWindow.Show(); NSApplication.SharedApplication.ActivateIgnoringOtherApps(true); NSApplication.SharedApplication.Run(); }
protected override void Run() { Resources.Init(); NativeControlsApplication.Init(FigmaRuntime.Token); }
static void Main(string[] args) { NativeControlsApplication.Init(); NSApplication.Init(); NSApplication.Main(args); }
static void Main(string[] args) { NativeControlsApplication.Init(Environment.GetEnvironmentVariable("TOKEN")); NSApplication.Init(); NSApplication.Main(args); }