Post

Replies

Boosts

Views

Activity

Comment on Programming language to develop macOS launch daemon
Thanks. And sorry, I didn't get an email notification. I read the basics of starting a daemon. I will need a launch daemon, because I will need to track MacBook's lid open and close events. I apologize for asking, in case this is something simple. I am mostly a Windows developer, and on that OS to start a service (i.e. daemon) one needs to call special functions. I wonder if I need to do the same under macOS? Or is it just a regular main()-type executable. Is there a C, or Swift code sample?
Oct ’22