tags:

views:

70

answers:

1

Is there a way to force quit all other applications from a cocoa app? If it kills the app itself if doesn't matter It supposed to quit too.

It has to be force quit since i dont want any dialogue boxes about saving or anything poping up.

Thanks! and cocoa as in desktop osx. NOT iPhone.

A: 

Look at the NSWorkspace method runningApplications and the class NSRunningApplication.

Sven