Skip to content
GuidesChecked 20 November 2026

Mac menu bar, login item and system access code

14 Mac menu bar and system access words counted in public Swift files on 1 November 2026.

Free for one project and 100 votes. Paid plans start with a 14 day trial, no card.

All 14 words

NSWorkspace is in 141,312 Swift files, 240 times the 589 of SMLoginItemSetEnabled.

Files, all 14 words
WordFiles
NSWorkspace141,312
NSPasteboard75,264
LSUIElement (plist)33,472
NSStatusItem24,384
SMAppService20,160
AXIsProcessTrusted20,128
AXUIElement19,680
MenuBarExtra17,024
NSPopover11,168
ScreenCaptureKit10,640
NSAppleScript7,240
CGEvent.tapCreate6,512
NSServices (plist)6,320
SMLoginItemSetEnabled589

Launch at login

SMLoginItemSetEnabled, the earlier login item call, is in 589 files.

SMAppService is in 20,160 files, 34.2 times SMLoginItemSetEnabled.

SMAppService is in 1.2 times the files of MenuBarExtra.

Files by login item word
Login item wordFiles
SMAppService20,160
SMLoginItemSetEnabled589

System access

NSWorkspace is in 141,312 files, 1.9 times the files of NSPasteboard.

Files by system access word
System access wordFiles
NSWorkspace141,312
NSPasteboard75,264
AXIsProcessTrusted20,128
AXUIElement19,680
ScreenCaptureKit10,640
NSAppleScript7,240
CGEvent.tapCreate6,512
NSServices (plist)6,320

Accessibility

CGEvent.tapCreate, which watches keyboard and mouse events, is in 32.4 files for every 100 with AXIsProcessTrusted.

AXUIElement is in 97.8 files for every 100 with AXIsProcessTrusted.

AXIsProcessTrusted is in 3.1 times the files of CGEvent.tapCreate.

Files per 100 with AXIsProcessTrusted
WordPer 100
AXUIElement97.8
CGEvent.tapCreate32.4

Eight pairs

Eight pairs set one word against another, and the ratios run from 1.0 to 34.2.

NSWorkspace is in 7.0 times the files of SMAppService.

SMAppService is in 34.2 times the files of SMLoginItemSetEnabled.

Times one word is in more files than the other
Word over wordTimes
NSWorkspace over SMAppService7.0
SMAppService over SMLoginItemSetEnabled34.2
NSStatusItem over SMAppService1.2
SMAppService over MenuBarExtra1.2
NSWorkspace over NSPasteboard1.9
ScreenCaptureKit over NSAppleScript1.5
AXIsProcessTrusted over AXUIElement1.0
NSPopover over ScreenCaptureKit1.0

By group

The login item words spread 34.2 to 1, the menu bar words only 2.2 to 1.

The menu bar group has a median of 17,024 files.

Files, the most and the fewest of each group
GroupMostFewest
Menu bar24,38411,168
Login item20,160589
System access141,3126,512

What is in the file

A count for each word

4 menu bar words, 2 login item words, and 8 system access words.

Words set against a base

Menu bar words per 100 NSStatusItem files, and Accessibility words per 100 AXIsProcessTrusted files.

Ratios you can quote

SMAppService is in 34.2 times the files of SMLoginItemSetEnabled.

No code and no names

The file holds counts only, with no repository and no developer.

How the files were counted

One search per word.

Write 14 searches

Each search names one Apple type, call, import or Info.plist key, matched as exact text.

Ask the code search

Send one request per search and wait seven seconds or more before the next.

Repeat incomplete results

A result the service marked incomplete was asked for again, up to three times.

Keep the count

Save the word, group, count and search as one CSV row, with no code.

Where a menu bar app asks for feedback

Menu bar apps are well represented: LSUIElement is in 33,472 files, NSStatusItem in 24,384 and MenuBarExtra in 17,024. An app with no dock icon and no main window has nowhere obvious to ask for feedback, so the popover or the menu itself is the place for a link to the board.

Launch at login follows the same pattern, with SMAppService in 20,160 files, so utilities that stay running all day are common. A feedback link in the menu serves an app open for hours as well as one opened once, and opening it takes a single NSWorkspace call, the word that sits in 141,312 files.

What these numbers leave out

  • These are files and not apps or users, and not how many people use a menu bar app or a login item.
  • Rounded large counts make words within about 10 percent of each other level.
  • LSUIElement and NSServices are counted in Info.plist files, so they are not set against the Swift words.
  • Only Apple words are counted here, so Mac code that uses other libraries is missed.
  • A word may sit in a comment or a string, so a count is not proof that code calls it.
  • A copied sample counts each time it appears, most forks are left out, and no code was read.

Mac app code questions

How many Swift files use NSWorkspace?

It is in 141,312 public files, the most of the 14 words.

Which is more common, NSStatusItem or MenuBarExtra?

NSStatusItem, with 24,384 files against 17,024, which is 1.4 times.

How many files hide the Dock icon?

LSUIElement is in 33,472 Info.plist files.

How many files use NSPopover?

It is in 11,168 files, 45.8 for every 100 with NSStatusItem.

How many files register a login item?

SMAppService is in 20,160 files and SMLoginItemSetEnabled in 589.

How many files check Accessibility access?

AXIsProcessTrusted is in 20,128 files and AXUIElement in 19,680.

How many files capture the screen?

ScreenCaptureKit is in 10,640 files.

How many files watch keyboard events?

CGEvent.tapCreate is in 6,512 files.

How many files run AppleScript?

NSAppleScript is in 7,240 files.

Does this count apps?

No. It counts files, and a copied sample counts each time.

Does the file hold any code?

No. It holds a count and the search for each word.

May a site quote these figures?

Yes. Quote any figure with the page name and 1 November 2026, the date of the count.

Collect feature requests in a Mac app

Your first board is free, with one project and 100 votes. The 14 day trial of Lite or Pro needs no card.