[ACCEPTED]-How to quit itself in Objective-C application?-protocol-handler

Accepted answer
Score: 19
  1. You don't have to launch open using NSTask... open just 3 calls into Launch Services, some of whose functionality 2 is directly available from NSWorkspace.

  2. To quit, you 1 just call [[NSApplication sharedApplication] terminate:nil]. See NSApplication documentation.

Score: 1

This has been answered here: Proper way to exit iPhone application? however you 5 should also take a look at August's answer. Although 4 it's not the accepted answer, it has been 3 voted higher and it also follows Apple's 2 set standards since Apple advises against 1 force quitting iPhone applications.

More Related questions