Expand description
Application and window selectors.
Resolution runs against a table the backend filled in. Unit tests pass a fake table and never call AppKit or CoreGraphics.
Structs§
- AppInfo
- One running application, as returned by
list_apps. - Doctor
Identity - Binary identity
doctorreports so the user can see which TCC subject is active. - Doctor
Report doctorreport. Null probes mean this OS does not check them yet.- Launch
Result - An application that was launched or activated.
- Listed
Window - A window row before z-order indexes are assigned.
- Permission
Fix - One missing permission and the Settings pane that grants it.
- Quit
Result quitresult.- Resolved
Target - Result of resolving an app and an optional window.
- Responsible
App - The GUI app that owns this process for TCC prompts.
- Window
Bounds - Rectangle in logical screen points.
- Window
Info - One window, as returned by
list_windows. - Window
List - Windows plus an optional note about how they were collected.
Enums§
- Activation
Policy - How macOS classifies a process. Helpers are accessory or prohibited.
- AppSelector
- How the caller named an application.
- Window
Selector - How the caller named a window.
Functions§
- assign_
z_ order - Assign z-order from the CG array order. Index 0 is the front window.
- bounds_
match_ frame - True when
frameis within 2 points ofboundson each edge and size. - canonical_
exe_ path - Canonicalize when the path exists. Otherwise keep the original path.
- filter_
windows_ for_ pid - Keep one process and renumber z-order so 0 is that app’s front window.
- parse_
app_ selector - Parse
name,bundle id,pid, or a path. - parse_
window_ selector - Parse a window title, z-order index,
index:N, orid:N. - resolve
- Resolve an app and, when requested, one of its windows.
- resolve_
app - Resolve
selectoragainstapps. - resolve_
window - Resolve an optional window inside an already filtered list.