Skip to content

How to use this helper tool to listen to NSWorkspace Notifications #14

Answered by jakaplan
metacodes asked this question in Q&A
Discussion options

You must be logged in to vote

NSWorkspace wouldn't be expected to work from a LaunchDaemon. NSWorkspace is part of AppKit which requires a GUI per-session bootstrap namespace. See Technical Note TN2083's Layered Frameworks section for more details.

I'm not entirely sure what you're looking to do, but perhaps you want a LaunchAgent? LaunchDaemons don't interact with macOS's window server upon which all GUIs are based.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@metacodes
Comment options

@jakaplan
Comment options

@metacodes
Comment options

Answer selected by jakaplan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants