Icons in activity monitor?

enter image description here

In the above image, some processes have “icons” next to their names. What characteristic should correspond to the process in order to have a “badge” next to its name? Please note that the defining attribute is not just located in the Applications folder, as there is no icon in several Applications folders in the Applications folder.

Also, how can I check if the PID meets the defining criteria in Objective-C? (Using Cocoa on OSX)

+4
source share
2 answers

I think that only applications that appear with their icon on the dock when it is opened have an icon on the activity monitor.

+2
source

Applications that are “registered” with “Launch Services” as a user interface application receive icons. Technically speaking, everything that ends with an LSApplicationCheckIn call will get one, but it is not a call you can make yourself.

If you start the standard NSRunLoop or even initialize NSApplication ( [NSApplication sharedApplication] ), you should get it.

My question is: what are you doing that are not getting it?

+1
source

Source: https://habr.com/ru/post/1432714/


All Articles