I'm not sure which is the right way, right now I'm just calling exit(0) when a user clicks on the exit button.
Use NSApplication's terminate method. For example:
[NSApp terminate:self]
Documentation is available here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With