• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Quitting all active applications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quitting all active applications


  • Subject: Re: Quitting all active applications
  • From: Rob Keniger <email@hidden>
  • Date: Thu, 28 Aug 2008 21:12:42 +1000


On 28/08/2008, at 8:36 PM, Phil Faber wrote:

Is there a simple way to quit all running applications?

Basically I want to achieve the same result as the first stage of hitting 'shut down' (closing all applications) without actually shutting down the system.


You could get the launched applications by using [[NSWorkspace sharedWorkspace] launchedApplications] and then send each of them a Quit Apple Event.

But why would you want to do this? It is possibly one of the most annoying things you could do to someone's machine and you would want to have a very, very good reason for it.

--
Rob Keniger



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Quitting all active applications
      • From: Phil Faber <email@hidden>
References: 
 >Quitting all active applications (From: Phil Faber <email@hidden>)

  • Prev by Date: Quitting all active applications
  • Next by Date: [meeting] Swindon, UK: upcoming cocoaheads
  • Previous by thread: Quitting all active applications
  • Next by thread: Re: Quitting all active applications
  • Index(es):
    • Date
    • Thread