[SOLVED]Hiding icon from a taskbar
lazarus / 33-macOS - Mac OS X
----------------------------------------------------------------------
bobix · 2017-04-28 08:07
I'm little new to macOS
is there any way to hide app icon from a taskbar? This is not working.
App's icon is still visible
QuoteForm1.visible:=false;
Form1.ShowInTaskBar:=stNever;
----------------------------------------------------------------------
bobix · 2017-04-28 08:56
simply right-click the program in the Finder and choose "Show Package
Contents," followed by opening the "Contents" folder in the window
that appears. In here, locate the file called "Info.plist" which is a
small text file in Apple's Property List XML format. As with all
property lists, this file is organized in a key-and-value structure,
so to instruct the system to prevent the program from displaying in
the Dock, we simply need to add the following key and value to this
file:
QuoteLSUIElement
----------------------------------------------------------------------
jwdietrich · 2017-05-01 11:55
Quote from: bobix on April 28, 2017, 10:56:17 amsimply right-click the
program in the Finder and choose "Show Package Contents," followed by
opening the "Contents" folder in the window that appears. In here,
locate the file called "Info.plist" which is a small text file in
Apple's Property List XML format. As with all property lists, this
file is organized in a key-and-value structure, so to instruct the
system to prevent the program from displaying in the Dock, we simply
need to add the following key and value to this file:
QuoteLSUIElement
This defines your program to be an agent app. In addition to being
hidden from the dock it doesn't appear in the Force Quit window. In
case of a crash you have to quit your app from the shell with kill -9.
A detailled reference on info.plist files is available from http://dev
eloper.apple.com/library/content/documentation/General/Reference/InfoP
listKeyReference/Introduction/Introduction.html