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.
| Word | Files |
|---|---|
| NSWorkspace | 141,312 |
| NSPasteboard | 75,264 |
| LSUIElement (plist) | 33,472 |
| NSStatusItem | 24,384 |
| SMAppService | 20,160 |
| AXIsProcessTrusted | 20,128 |
| AXUIElement | 19,680 |
| MenuBarExtra | 17,024 |
| NSPopover | 11,168 |
| ScreenCaptureKit | 10,640 |
| NSAppleScript | 7,240 |
| CGEvent.tapCreate | 6,512 |
| NSServices (plist) | 6,320 |
| SMLoginItemSetEnabled | 589 |
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.
| Login item word | Files |
|---|---|
| SMAppService | 20,160 |
| SMLoginItemSetEnabled | 589 |
System access
NSWorkspace is in 141,312 files, 1.9 times the files of NSPasteboard.
| System access word | Files |
|---|---|
| NSWorkspace | 141,312 |
| NSPasteboard | 75,264 |
| AXIsProcessTrusted | 20,128 |
| AXUIElement | 19,680 |
| ScreenCaptureKit | 10,640 |
| NSAppleScript | 7,240 |
| CGEvent.tapCreate | 6,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.
| Word | Per 100 |
|---|---|
| AXUIElement | 97.8 |
| CGEvent.tapCreate | 32.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.
| Word over word | Times |
|---|---|
| NSWorkspace over SMAppService | 7.0 |
| SMAppService over SMLoginItemSetEnabled | 34.2 |
| NSStatusItem over SMAppService | 1.2 |
| SMAppService over MenuBarExtra | 1.2 |
| NSWorkspace over NSPasteboard | 1.9 |
| ScreenCaptureKit over NSAppleScript | 1.5 |
| AXIsProcessTrusted over AXUIElement | 1.0 |
| NSPopover over ScreenCaptureKit | 1.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.
| Group | Most | Fewest |
|---|---|---|
| Menu bar | 24,384 | 11,168 |
| Login item | 20,160 | 589 |
| System access | 141,312 | 6,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.
More Swift code, counted
More counts for Swift and Apple developers.
SwiftUI vs UIKit and 22 more Apple frameworks, counted
24 Apple frameworks counted in public Swift files.
Apple platform checks counted in public Swift files
23 platform, visionOS, watchOS, CarPlay and health words.
iOS permission keys and entitlements counted on GitHub
71 keys, from location to app groups.
URLSession, Codable and Network counted in Swift files
13 URLSession, decoding and connection check words counted.
Languages in iOS String Catalogs, counted on GitHub
38 languages, with English in 68.4 of every 100.
What macOS version Mac apps require, 1,800 read
Floors, price, size and languages of Mac apps.
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.