Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
MacOS shutdown hook
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="YanivH" data-source="post: 1770066" data-attributes="member: 395630"><p>Trying to find a way to run a shutdown hook on mac from a command-line background process.</p><p></p><p>Tried using NSWorkspaceWillPowerOffNotification, which was never called. Also tried kIOMessageSystemWillPowerOff event and that did not run either.</p><p></p><p>Anyone has any idea?</p></blockquote><p></p>
[QUOTE="YanivH, post: 1770066, member: 395630"] Trying to find a way to run a shutdown hook on mac from a command-line background process. Tried using NSWorkspaceWillPowerOffNotification, which was never called. Also tried kIOMessageSystemWillPowerOff event and that did not run either. Anyone has any idea? [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
MacOS shutdown hook
Top