views:

169

answers:

1

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.

+7  A: 

Use NSApplication's terminate method. For example:

[NSApp terminate:self]

Documentation is available here.

mipadi