示例#1
0
        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();
        }
示例#2
0
 protected override void Run()
 {
     Resources.Init();
     NativeControlsApplication.Init(FigmaRuntime.Token);
 }
示例#3
0
 static void Main(string[] args)
 {
     NativeControlsApplication.Init();
     NSApplication.Init();
     NSApplication.Main(args);
 }
示例#4
0
 static void Main(string[] args)
 {
     NativeControlsApplication.Init(Environment.GetEnvironmentVariable("TOKEN"));
     NSApplication.Init();
     NSApplication.Main(args);
 }