public void FrontMessage(Json jMessage)
        {
            WindowFrontMessageController w = new WindowFrontMessageController();

            (Engine.Instance as Engine).WindowsOpen.Add(w);
            w.Message = jMessage;
            GuiUtils.ShowWindowWithFocus(w, this);
        }
        /*
        public void SwitchToRegular()
        {
            NSApplication.SharedApplication.ActivationPolicy = NSApplicationActivationPolicy.Regular;
        }

        public void SwitchToAccessory()
        {
            NSApplication.SharedApplication.ActivationPolicy = NSApplicationActivationPolicy.Accessory;
        }
        */
        public void FrontMessage(string message)
        {
            WindowFrontMessageController w = new WindowFrontMessageController ();
            (Engine.Instance as Engine).WindowsOpen.Add (w);
            w.Message = message;
            GuiUtils.ShowWindowWithFocus (w, this);
        }