• 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: Invoking Force Quit from Cocoa?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Invoking Force Quit from Cocoa?


  • Subject: Re: Invoking Force Quit from Cocoa?
  • From: "Alexander v. Below" <email@hidden>
  • Date: Sat, 1 Oct 2005 18:03:36 +0200

I have no idea how to display the OS dialog, but you could display your own process list (see the darwin ps source code) and then send signal (3) as appropriate

Of course, for a SIGKILL you would need to be running as root, see the Cocoa "Authorization Services" for that.

HTH

Alex

Am 01.10.2005 um 15:35 schrieb Martin Roesch:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi everyone,

I'm making my first foray into Cocoa programming and I've got a question. I'd like to invoke the Force Quit app/dialog from the Cocoa program that I'm building but I haven't been able to figure out how to invoke it (short of the opt-cmd-esc key combo). I thought a simple event to loginwindow would do it but there doesn't appear to be an event type to get the job done.

I've searched through the archives and I haven't been able to find any info on performing this function, does anyone have any suggestions?

     -Marty

- --
Martin Roesch - Founder/CTO, Sourcefire Inc. - +1-410-290-1616
Sourcefire - Discover.  Determine.  Defend.
email@hidden - http://www.sourcefire.com
Snort: Open Source Network IDS - http://www.snort.org


-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin)

iD8DBQFDPpC4qj0FAQQ3KOARAm73AJ4yNP0WvqXrUSeWb9xNm4yesQf1hACfY7eO
n9Ny4n6m0JGYr6vOQd/I/Gs=
=JGDZ
-----END PGP SIGNATURE-----
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Invoking Force Quit from Cocoa?
      • From: Alastair Houghton <email@hidden>
    • Re: Invoking Force Quit from Cocoa?
      • From: Martin Roesch <email@hidden>
References: 
 >Invoking Force Quit from Cocoa? (From: Martin Roesch <email@hidden>)

  • Prev by Date: Re: Core Data question on calculating percentages
  • Next by Date: Re: Data Entry and display using Many to Many Relationalships
  • Previous by thread: Invoking Force Quit from Cocoa?
  • Next by thread: Re: Invoking Force Quit from Cocoa?
  • Index(es):
    • Date
    • Thread