在Mac中以编程方式禁用菜单栏并停靠

在Mac中以编程方式禁用菜单栏并停靠

问题描述:

我是Mac编程的新手,我必须执行一项任务.我需要制作一个将在启动时运行并覆盖整个屏幕的应用程序,直到插入我的自定义密码后才能关闭. 菜单栏和停靠栏需要隐藏在该应用程序的后面,并且在提供信息之前,无法关闭该应用程序.

i am new to mac programming and i have to perform a task. I need to make an application that will run at startup and cover the complete screen and will not close until my custom passcode is inserted. The menu bar and dock needs to be hidden behind this application and the application cannot be closed until the information is given.

到目前为止,我已经编写了将在启动时运行的代码.但是我似乎无法禁用菜单栏并停靠并锁定所有用户操作,除非他提供了我想要的密码.

So far i have written the code that would run at startup . But i cant seem to disable the menu bar and dock and lock all user actions unless he gives the passcode i want.

该怎么办!!!!

本文包含一些良好的信息,以及有关创建隐藏Dock和菜单栏的全屏应用程序的链接.

This article contains some good info and links on creating a full-screen app that hides the Dock and menubar.