LoginSignup
0
0

More than 5 years have passed since last update.

讓 Mac App 成為一個 Status Bar Application

Posted at

設定好 status bar 的 menu item 之後,如何讓一個 app 隱藏 dock 上的 icon 以及應用程式的選單列非常簡單。

選取 project 的檔案之後,在 project editors 中選定 target 、切換到 Info tab ,在 Custom OS X Application Target Properties 下方的列表中,新增一筆設定

Key 欄位中打入 (這裡編輯時會有自動完成,可以直接選取建議值)

Application is agent (UIElement)

並把 value 設定為

YES

這樣就完成了

註:這裡設定的值,也可以直接在 app 的 Info.plist 裡面設定。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0